mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
tests: fakesink: fix string leak in unit test
This commit is contained in:
parent
ef2a4083af
commit
201b013fac
1 changed files with 6 additions and 2 deletions
|
@ -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…
Reference in a new issue