mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
deinterleave: fix leaks
- Flush the bus so messages aren't leaked - Fix pad leak https://bugzilla.gnome.org/show_bug.cgi?id=766561
This commit is contained in:
parent
5f2b32e642
commit
c7621e24ec
1 changed files with 6 additions and 0 deletions
|
@ -191,8 +191,10 @@ GST_START_TEST (test_2_channels)
|
|||
mysinkpads = NULL;
|
||||
|
||||
g_object_unref (deinterleave);
|
||||
gst_bus_set_flushing (bus, TRUE);
|
||||
g_object_unref (bus);
|
||||
gst_caps_unref (caps);
|
||||
gst_object_unref (mysrcpad);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -262,8 +264,10 @@ GST_START_TEST (test_2_channels_1_linked)
|
|||
mysinkpads = NULL;
|
||||
|
||||
g_object_unref (deinterleave);
|
||||
gst_bus_set_flushing (bus, TRUE);
|
||||
g_object_unref (bus);
|
||||
gst_caps_unref (caps);
|
||||
gst_object_unref (mysrcpad);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -399,9 +403,11 @@ GST_START_TEST (test_2_channels_caps_change)
|
|||
mysinkpads = NULL;
|
||||
|
||||
g_object_unref (deinterleave);
|
||||
gst_bus_set_flushing (bus, TRUE);
|
||||
g_object_unref (bus);
|
||||
gst_caps_unref (caps);
|
||||
gst_caps_unref (caps2);
|
||||
gst_object_unref (mysrcpad);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue