textoverlay: Free text buffer in finalize

This commit is contained in:
Sebastian Dröge 2014-06-29 22:30:56 +02:00
parent a84320be50
commit dcccabfe22

View file

@ -137,6 +137,8 @@ gst_opencv_text_overlay_finalize (GObject * obj)
cvReleaseImage (&filter->cvImage);
}
g_free (filter->textbuf);
G_OBJECT_CLASS (gst_opencv_text_overlay_parent_class)->finalize (obj);
}
@ -243,7 +245,6 @@ gst_opencv_text_overlay_init (GstOpencvTextOverlay * filter)
filter->colorR = DEFAULT_PROP_COLOR;
filter->colorG = DEFAULT_PROP_COLOR;
filter->colorB = DEFAULT_PROP_COLOR;
}
static void