validate: report: don't shadow the GString variable

We were leaking the GString as it's freed outside of the block.
This commit is contained in:
Guillaume Desmottes 2015-03-20 11:24:27 +01:00
parent 3a275d2212
commit e9aeca28a8

View file

@ -579,7 +579,7 @@ gst_validate_print_action (GstValidateAction * action, const gchar * message)
GString *string = NULL;
if (message == NULL) {
GString *string = g_string_new (gst_structure_get_name (action->structure));
string = g_string_new (gst_structure_get_name (action->structure));
g_string_append_len (string, ": ", 2);
gst_structure_foreach (action->structure,