tests: fakesink: fix string leak in unit test
This commit is contained in:
parent
ef2a4083af
commit
201b013fac
@ -1002,7 +1002,7 @@ last_message_cb (GObject * obj, GParamSpec * pspec, gpointer user_data)
|
||||
fail_unless (last_msg != NULL);
|
||||
|
||||
if (!strstr (last_msg, "chain"))
|
||||
return;
|
||||
goto skip;
|
||||
|
||||
GST_LOG_OBJECT (obj, "%s", last_msg);
|
||||
|
||||
@ -1021,6 +1021,8 @@ last_message_cb (GObject * obj, GParamSpec * pspec, gpointer user_data)
|
||||
|
||||
*p_counter = count + 1;
|
||||
|
||||
skip:
|
||||
|
||||
g_free (last_msg);
|
||||
}
|
||||
|
||||
@ -1094,7 +1096,7 @@ deep_notify_last_message_cb (GstObject * obj, GstObject * prop_obj,
|
||||
fail_unless (last_msg != NULL);
|
||||
|
||||
if (!strstr (last_msg, "chain"))
|
||||
return;
|
||||
goto skip;
|
||||
|
||||
GST_LOG_OBJECT (prop_obj, "%s", last_msg);
|
||||
|
||||
@ -1113,6 +1115,8 @@ deep_notify_last_message_cb (GstObject * obj, GstObject * prop_obj,
|
||||
|
||||
*p_counter = count + 1;
|
||||
|
||||
skip:
|
||||
|
||||
g_free (last_msg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user