summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2013-06-05 15:20:52 +0200
committerEdward Hervey <edward@collabora.com>2013-06-05 15:23:18 +0200
commit0809770d26500e1e6e25c271f16c8bdf73591a0f (patch)
tree1c6b008a7bee19be3e128210222fea055c201cc5
parent595fe49a3e8315388d25f962229149d02b76d7b6 (diff)
downloadgstreamer-plugins-bad-0809770d26500e1e6e25c271f16c8bdf73591a0f.tar.gz
mpegtspacketizer: Fix leak
Since we were manually setting GValue to the GValueArray, we also need to specify how many were set, otherwise all values in the array will be leaked.
-rw-r--r--gst/mpegtsdemux/mpegtspacketizer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.c b/gst/mpegtsdemux/mpegtspacketizer.c
index ddafdb65b..d28bda5db 100644
--- a/gst/mpegtsdemux/mpegtspacketizer.c
+++ b/gst/mpegtsdemux/mpegtspacketizer.c
@@ -743,6 +743,8 @@ mpegts_packetizer_parse_descriptors (MpegTSPacketizer2 * packetizer,
g_value_take_boxed (value, desc);
}
+ descriptors->n_values = nb_desc;
+
*buffer = data;
return descriptors;