From c930c42aa893aedd914852eda1457226b8e52063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 7 Mar 2019 18:20:40 +0000 Subject: [PATCH] teletextdec: fix some string leaks --- ext/teletextdec/gstteletextdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index c33999df7f..9e9f0634bc 100644 --- a/ext/teletextdec/gstteletextdec.c +++ b/ext/teletextdec/gstteletextdec.c @@ -287,6 +287,8 @@ gst_teletextdec_finalize (GObject * object) g_mutex_clear (&teletext->queue_lock); + g_free (teletext->font_description); + g_free (teletext->subtitles_template); g_free (teletext->frame); G_OBJECT_CLASS (parent_class)->finalize (object); @@ -359,9 +361,11 @@ gst_teletextdec_set_property (GObject * object, guint prop_id, teletext->subtitles_mode = g_value_get_boolean (value); break; case PROP_SUBS_TEMPLATE: + g_free (teletext->subtitles_template); teletext->subtitles_template = g_value_dup_string (value); break; case PROP_FONT_DESCRIPTION: + g_free (teletext->font_description); teletext->font_description = g_value_dup_string (value); break; default: