teletextdec: fix minor string leak
authorTim-Philipp Müller <tim@centricular.com>
Fri, 3 Dec 2021 13:24:25 +0000 (13:24 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 6 Dec 2021 13:07:37 +0000 (13:07 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1416>

subprojects/gst-plugins-bad/ext/teletextdec/gstteletextdec.c

index 5b4abfd..38d6f69 100644 (file)
@@ -215,8 +215,7 @@ gst_teletextdec_class_init (GstTeletextDecClass * klass)
   g_object_class_install_property (gobject_class, PROP_SUBS_TEMPLATE,
       g_param_spec_string ("subtitles-template", "Subtitles output template",
           "Output template used to print each one of the subtitles lines",
-          g_strescape ("%s\n", NULL),
-          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          "%s\\n", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_FONT_DESCRIPTION,
       g_param_spec_string ("font-description", "Pango font description",