mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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:
parent
595fe49a3e
commit
0809770d26
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue