From 61e3c48ad170ffa055b87df1d858845b111665f9 Mon Sep 17 00:00:00 2001 From: Ravi Kiran K N Date: Fri, 4 Sep 2015 14:18:50 +0530 Subject: [PATCH] smpte: free mask Free the memory allocated to 'mask' to avoid memory leak. https://bugzilla.gnome.org/show_bug.cgi?id=754555 --- gst/smpte/gstsmpte.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index 696a1b4cdf..945fbdcfaf 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -375,6 +375,9 @@ gst_smpte_finalize (GstSMPTE * smpte) if (smpte->collect) { gst_object_unref (smpte->collect); } + if (smpte->mask) { + gst_mask_destroy (smpte->mask); + } G_OBJECT_CLASS (parent_class)->finalize ((GObject *) smpte); }