mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
textoverlay: Free text buffer in finalize
This commit is contained in:
parent
a84320be50
commit
dcccabfe22
1 changed files with 2 additions and 1 deletions
|
@ -137,6 +137,8 @@ gst_opencv_text_overlay_finalize (GObject * obj)
|
||||||
cvReleaseImage (&filter->cvImage);
|
cvReleaseImage (&filter->cvImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (filter->textbuf);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_opencv_text_overlay_parent_class)->finalize (obj);
|
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->colorR = DEFAULT_PROP_COLOR;
|
||||||
filter->colorG = DEFAULT_PROP_COLOR;
|
filter->colorG = DEFAULT_PROP_COLOR;
|
||||||
filter->colorB = DEFAULT_PROP_COLOR;
|
filter->colorB = DEFAULT_PROP_COLOR;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue