inspect: fix feature leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 May 2016 15:35:29 +0000 (17:35 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 4 May 2016 07:09:43 +0000 (10:09 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=765957

tools/gst-inspect.c

index 845f52e..5c93b4f 100644 (file)
@@ -1561,6 +1561,9 @@ main (int argc, char *argv[])
         } else {
           exit_code = 1;
         }
+
+        if (feature)
+          gst_object_unref (feature);
       } else {
         /* FIXME: support checking for plugins too */
         g_printerr ("Checking for plugins is not supported yet\n");