validate: report: fix GString leak when early returning

This commit is contained in:
Guillaume Desmottes 2015-04-10 11:28:34 +02:00
parent 848d660603
commit 308fa194a7

View file

@ -676,7 +676,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
GstValidateAction *action = (GstValidateAction *) source; GstValidateAction *action = (GstValidateAction *) source;
if (_action_check_and_set_printed (action)) if (_action_check_and_set_printed (action))
return; goto out;
g_string_printf (string, "Executing "); g_string_printf (string, "Executing ");
@ -764,6 +764,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
fflush (log_files[i]); fflush (log_files[i]);
} }
out:
g_string_free (string, TRUE); g_string_free (string, TRUE);
} }