nleoperation: don't leak srcpad
authorJustin Kim <justin.kim@collabora.com>
Wed, 30 Sep 2015 08:11:20 +0000 (17:11 +0900)
committerThibault Saunier <tsaunier@gnome.org>
Wed, 30 Sep 2015 10:09:17 +0000 (12:09 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=755860

plugins/nle/nleoperation.c

index fa59734..9387de0 100644 (file)
@@ -769,6 +769,7 @@ nle_operation_hard_cleanup (NleOperation * operation)
           GST_ERROR ("Unlinking %" GST_PTR_FORMAT " and  %"
               GST_PTR_FORMAT, srcpad, sinkpad);
           gst_pad_unlink (srcpad, sinkpad);
+          gst_object_unref (srcpad);
         }
 
         g_value_reset (&item);