projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25fdde9
)
videotestsrc: do not leak lines
author
Patricia Muscalu
<patricia@axis.com>
Thu, 27 Jun 2013 10:23:27 +0000
(12:23 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 27 Jun 2013 10:39:47 +0000
(12:39 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703177
gst/videotestsrc/gstvideotestsrc.c
patch
|
blob
|
history
diff --git
a/gst/videotestsrc/gstvideotestsrc.c
b/gst/videotestsrc/gstvideotestsrc.c
index
66ecc5e
..
63e67ce
100644
(file)
--- a/
gst/videotestsrc/gstvideotestsrc.c
+++ b/
gst/videotestsrc/gstvideotestsrc.c
@@
-933,6
+933,7
@@
static gboolean
gst_video_test_src_stop (GstBaseSrc * basesrc)
{
GstVideoTestSrc *src = GST_VIDEO_TEST_SRC (basesrc);
+ guint i;
g_free (src->tmpline);
src->tmpline = NULL;
@@
-946,6
+947,12
@@
gst_video_test_src_stop (GstBaseSrc * basesrc)
gst_video_chroma_resample_free (src->subsample);
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;
}