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.
This commit is contained in:
Edward Hervey 2013-06-05 15:20:52 +02:00
parent 595fe49a3e
commit 0809770d26

View file

@ -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;