From 4fe32b923f387c61865bc734fcc7c508ca4a8101 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 2 May 2016 17:35:29 +0200 Subject: [PATCH] inspect: fix feature leak https://bugzilla.gnome.org/show_bug.cgi?id=765957 --- tools/gst-inspect.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 845f52e..5c93b4f 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -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"); -- 2.7.4