summaryrefslogtreecommitdiff
path: root/validate/tools
diff options
context:
space:
mode:
authorWonchul Lee <chul0812@gmail.com>2015-06-09 09:10:42 +0900
committerTim-Philipp Müller <tim@centricular.com>2015-06-13 19:28:19 +0100
commit953db96ede36f90672506e1c7d7cc21a34c2b3c6 (patch)
tree1a14f266644ca47b74805fb942fab41cac0f8630 /validate/tools
parent736ecef3827e90c2a8bbb076b99db01e0d6e26ea (diff)
validate: media-check: fix double unref in error code path
Writer would get unrefed twice when it could not parse the file. https://bugzilla.gnome.org/show_bug.cgi?id=750606
Diffstat (limited to 'validate/tools')
-rw-r--r--validate/tools/gst-validate-media-check.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/validate/tools/gst-validate-media-check.c b/validate/tools/gst-validate-media-check.c
index f278d0b..f14f2ba 100644
--- a/validate/tools/gst-validate-media-check.c
+++ b/validate/tools/gst-validate-media-check.c
@@ -111,7 +111,6 @@ main (int argc, gchar ** argv)
if (reference == NULL) {
g_print ("Could not parse file: %s", expected_file);
- gst_object_unref (writer);
ret = 1;
goto out;
}