mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-22 02:13:46 +00:00
wavenc: Fix memory leaks in the unit test
This commit is contained in:
parent
9d4f349454
commit
4ae9f125f0
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@ make_n_channel_wav (const gint channels, const GValueArray * arr)
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
|
|
||||||
|
gst_object_unref (pipeline);
|
||||||
g_free (audiotestsrc);
|
g_free (audiotestsrc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,6 +130,7 @@ GST_START_TEST (test_encode_stereo)
|
||||||
g_value_unset (&val);
|
g_value_unset (&val);
|
||||||
|
|
||||||
make_n_channel_wav (2, arr);
|
make_n_channel_wav (2, arr);
|
||||||
|
g_value_array_free (arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
Loading…
Reference in a new issue