mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
videotestsrc: do not leak lines
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703177
This commit is contained in:
parent
25fdde908a
commit
f9acd972ef
1 changed files with 7 additions and 0 deletions
|
@ -933,6 +933,7 @@ static gboolean
|
||||||
gst_video_test_src_stop (GstBaseSrc * basesrc)
|
gst_video_test_src_stop (GstBaseSrc * basesrc)
|
||||||
{
|
{
|
||||||
GstVideoTestSrc *src = GST_VIDEO_TEST_SRC (basesrc);
|
GstVideoTestSrc *src = GST_VIDEO_TEST_SRC (basesrc);
|
||||||
|
guint i;
|
||||||
|
|
||||||
g_free (src->tmpline);
|
g_free (src->tmpline);
|
||||||
src->tmpline = NULL;
|
src->tmpline = NULL;
|
||||||
|
@ -946,6 +947,12 @@ gst_video_test_src_stop (GstBaseSrc * basesrc)
|
||||||
gst_video_chroma_resample_free (src->subsample);
|
gst_video_chroma_resample_free (src->subsample);
|
||||||
src->subsample = NULL;
|
src->subsample = NULL;
|
||||||
|
|
||||||
|
for (i = 0; i < src->n_lines; i++)
|
||||||
|
g_free (src->lines[i]);
|
||||||
|
g_free (src->lines);
|
||||||
|
src->n_lines = 0;
|
||||||
|
src->lines = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue