summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-05-02 17:35:29 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-05-04 10:09:43 +0300
commit4fe32b923f387c61865bc734fcc7c508ca4a8101 (patch)
treeb5532ce8d771845faa6785af74529ddeb9b1bd5c /tools
parent0ff10ac3ca98018a3ce77c53876645601608ab26 (diff)
inspect: fix feature leak
https://bugzilla.gnome.org/show_bug.cgi?id=765957
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-inspect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 845f52e82f..5c93b4f769 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");