uridecodebin3: Fix GList leak
authorSeungha Yang <seungha.yang@navercorp.com>
Wed, 9 May 2018 01:39:23 +0000 (10:39 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 9 May 2018 06:03:13 +0000 (07:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=795937

gst/playback/gsturidecodebin3.c

index 606fe3d..8b1840d 100644 (file)
@@ -576,7 +576,7 @@ db_pad_removed_cb (GstElement * element, GstPad * pad, GstURIDecodeBin3 * dec)
 
     if (cand->target_pad == pad) {
       output = cand;
-      dec->output_pads = g_list_remove_link (dec->output_pads, tmp);
+      dec->output_pads = g_list_delete_link (dec->output_pads, tmp);
       break;
     }
   }