mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
spu-pgs: Fix array memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=758517
This commit is contained in:
parent
01f23d88f3
commit
b328fbe31a
1 changed files with 2 additions and 0 deletions
|
@ -318,6 +318,8 @@ pgs_presentation_segment_set_object_count (PgsPresentationSegment * ps,
|
|||
guint8 n_objects)
|
||||
{
|
||||
if (ps->objects == NULL) {
|
||||
if (n_objects == 0)
|
||||
return;
|
||||
ps->objects =
|
||||
g_array_sized_new (FALSE, TRUE, sizeof (PgsCompositionObject),
|
||||
n_objects);
|
||||
|
|
Loading…
Reference in a new issue