teletextdec: fix some string leaks

This commit is contained in:
Tim-Philipp Müller 2019-03-07 18:20:40 +00:00
parent 679fa2d200
commit c930c42aa8

View file

@ -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: