dvdreadsrc: Fix string memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=785388
This commit is contained in:
Satya Prakash Gupta 2017-07-25 13:36:17 +05:30 committed by Sebastian Dröge
parent 0d73cb55b1
commit 861cff5da1

View 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[0] = (u->lang_code >> 8) & 0xff;
lang_code[1] = u->lang_code & 0xff; lang_code[1] = u->lang_code & 0xff;
gst_structure_set (s, t, G_TYPE_STRING, lang_code, NULL); gst_structure_set (s, t, G_TYPE_STRING, lang_code, NULL);
g_free (t);
t = g_strdup_printf ("subpicture-%d-stream", i); t = g_strdup_printf ("subpicture-%d-stream", i);
gst_structure_set (s, t, G_TYPE_INT, (int) sid, NULL); gst_structure_set (s, t, G_TYPE_INT, (int) sid, NULL);
g_free (t); g_free (t);