uridecodebin3: Fix string leak
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 8 May 2018 14:44:38 +0000 (23:44 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 8 May 2018 15:20:08 +0000 (16:20 +0100)
uri and suburi should be free'd

https://bugzilla.gnome.org/show_bug.cgi?id=795932

gst/playback/gsturidecodebin3.c

index 436e37c..606fe3d 100644 (file)
@@ -652,6 +652,8 @@ gst_uri_decode_bin3_finalize (GObject * obj)
   GstURIDecodeBin3 *dec = GST_URI_DECODE_BIN3 (obj);
 
   g_mutex_clear (&dec->lock);
+  g_free (dec->uri);
+  g_free (dec->suburi);
 
   G_OBJECT_CLASS (parent_class)->finalize (obj);
 }