smpte: free mask

Free the memory allocated to 'mask' to avoid
memory leak.

https://bugzilla.gnome.org/show_bug.cgi?id=754555
This commit is contained in:
Ravi Kiran K N 2015-09-04 14:18:50 +05:30 committed by Sebastian Dröge
parent 290f8be15a
commit 61e3c48ad1

View file

@ -375,6 +375,9 @@ gst_smpte_finalize (GstSMPTE * smpte)
if (smpte->collect) { if (smpte->collect) {
gst_object_unref (smpte->collect); gst_object_unref (smpte->collect);
} }
if (smpte->mask) {
gst_mask_destroy (smpte->mask);
}
G_OBJECT_CLASS (parent_class)->finalize ((GObject *) smpte); G_OBJECT_CLASS (parent_class)->finalize ((GObject *) smpte);
} }