downloadbuffer, benchmarks: fix error leaks in failure code paths

https://bugzilla.gnome.org/show_bug.cgi?id=755019
This commit is contained in:
Vineeth TM 2015-09-15 10:56:40 +09:00 committed by Tim-Philipp Müller
parent f409dd48e0
commit fcdfcbd618
5 changed files with 5 additions and 0 deletions

View file

@ -794,6 +794,7 @@ gst_check_abi_list (GstCheckABIStruct list[], gboolean have_abi_sizes)
if (!g_file_set_contents (fn, s->str, s->len, &err)) {
g_print ("%s", s->str);
g_printerr ("\nFailed to write ABI information: %s\n", err->message);
g_clear_error (&err);
} else {
g_print ("\nWrote ABI information to '%s'.\n", fn);
}

View file

@ -840,6 +840,7 @@ hit_eos:
out_flushing:
{
GST_DEBUG_OBJECT (dlbuf, "we are flushing");
g_clear_error (&error);
gst_buffer_unmap (buf, &info);
if (*buffer == NULL)
gst_buffer_unref (buf);

View file

@ -101,6 +101,7 @@ main (gint argc, gchar * argv[])
if (error) {
printf ("ERROR: g_thread_try_new() %s\n", error->message);
g_clear_error (&error);
exit (-1);
}
}

View file

@ -75,6 +75,7 @@ main (gint argc, gchar * argv[])
if (error) {
printf ("ERROR: g_thread_try_new() %s\n", error->message);
g_clear_error (&error);
exit (-1);
}
}

View file

@ -165,6 +165,7 @@ main (gint argc, gchar * argv[])
if (error) {
printf ("ERROR: g_thread_try_new() %s\n", error->message);
g_clear_error (&error);
exit (-1);
}
}