diff options
author | Garima Gaur <garima.g@samsung.com> | 2016-11-30 10:40:42 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-30 09:59:08 +0200 |
commit | aa08be43c7348dc1e0f6e968946bd810c417c267 (patch) | |
tree | f8a1b6f807dcbcfb7189eb06de32f976e0461078 /tests | |
parent | bf11338d6f35f242af2738b689d52e8ca480f34e (diff) | |
download | gstreamer-plugins-bad-aa08be43c7348dc1e0f6e968946bd810c417c267.tar.gz |
gst: Fix caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=775072
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/directfb/gstdfb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/examples/directfb/gstdfb.c b/tests/examples/directfb/gstdfb.c index 32ddd154a..5fcc0260a 100644 --- a/tests/examples/directfb/gstdfb.c +++ b/tests/examples/directfb/gstdfb.c @@ -91,11 +91,14 @@ size_changed (GObject * obj, GParamSpec * pspec, IDirectFBWindow * window) gint width, height; if (!(gst_structure_get_int (s, "width", &width) && - gst_structure_get_int (s, "height", &height))) + gst_structure_get_int (s, "height", &height))) { + gst_caps_unref (caps); return; + } window->Resize (window, width, height); } + gst_caps_unref (caps); } static void |