GNOME Bugzilla – Bug 755861
uri-asset: reallocate a passed GError pointer.
Last modified: 2015-10-01 03:17:53 UTC
In discoverer_discovered_cb, a passed pointer for GError is reallocated so it causes leakage, and normally that's not a good idea.
Created attachment 312408 [details] [review] uri-asset error
Breaks make check: ==================================================================== GStreamer Editing Services 1.7.0.1: tests/check/test-suite.log ==================================================================== # TOTAL: 19 # PASS: 16 # SKIP: 0 # XFAIL: 0 # FAIL: 3 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: ges/uriclip ================= Running suite(s): ges-filesource Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed 66%: Checks: 3, Failures: 1, Errors: 0 gstcheck.c:79:F:filesource:test_filesource_basic:0: Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed FAIL ges/uriclip (exit status: 1) FAIL: ges/timelineedition ========================= Running suite(s): ges-timeline-edition Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed 85%: Checks: 7, Failures: 1, Errors: 0 gstcheck.c:79:F:timeline-edition:test_simple_triming:0: Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed FAIL ges/timelineedition (exit status: 1) FAIL: ges/project ================= Running suite(s): ges-project Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed 0:00:00.224563359 1521 0x559a89aceca0 ERROR GST_PIPELINE grammar.y:691:priv_gst_parse_yyparse: no element "nowaythiselementexists" 50%: Checks: 6, Failures: 3, Errors: 0 ges/project.c:190:F:project:test_project_load_xges:0: Assertion 'GST_IS_DISCOVERER_INFO (info)' failed gstcheck.c:79:F:project:test_project_add_properties:0: Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed gstcheck.c:79:F:project:test_project_auto_transition:0: Unexpected critical/warning: g_error_free: assertion 'error != NULL' failed FAIL ges/project (exit status: 3)
Review of attachment 312408 [details] [review]: See previous comment
I moved this patch to https://phabricator.freedesktop.org/D302