diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2015-11-23 11:32:13 +0900 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-11-24 15:23:00 +0000 |
commit | b328fbe31a4eabf0b399efabfa205ce777cc2676 (patch) | |
tree | 3f0994bdf55142988c7a79eaddd422e26cbc9052 /gst/dvdspu | |
parent | 01f23d88f33e214a02943b8210ed31324a2bbff0 (diff) | |
download | gstreamer-plugins-bad-b328fbe31a4eabf0b399efabfa205ce777cc2676.tar.gz |
spu-pgs: Fix array memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=758517
Diffstat (limited to 'gst/dvdspu')
-rw-r--r-- | gst/dvdspu/gstspu-pgs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/dvdspu/gstspu-pgs.c b/gst/dvdspu/gstspu-pgs.c index 009c3e09b..6108de07c 100644 --- a/gst/dvdspu/gstspu-pgs.c +++ b/gst/dvdspu/gstspu-pgs.c @@ -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); |