dvdreadsrc: Fix string memory leak
authorSatya Prakash Gupta <sp.gupta@samsung.com>
Tue, 25 Jul 2017 08:06:17 +0000 (13:36 +0530)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 25 Jul 2017 08:23:38 +0000 (11:23 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=785388

ext/dvdread/dvdreadsrc.c

index 234f251..18e9f70 100644 (file)
@@ -559,6 +559,7 @@ gst_dvd_read_src_goto_title (GstDvdReadSrc * src, gint title, gint angle)
       lang_code[0] = (u->lang_code >> 8) & 0xff;
       lang_code[1] = u->lang_code & 0xff;
       gst_structure_set (s, t, G_TYPE_STRING, lang_code, NULL);
+      g_free (t);
       t = g_strdup_printf ("subpicture-%d-stream", i);
       gst_structure_set (s, t, G_TYPE_INT, (int) sid, NULL);
       g_free (t);