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
This commit is contained in:
Wonchul Lee 2015-06-09 09:10:42 +09:00 committed by Tim-Philipp Müller
parent 736ecef382
commit 953db96ede

View file

@ -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;
}