glupload: fix GValue leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 10 Mar 2017 16:57:51 +0000 (16:57 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:27 +0000 (19:32 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=779869

gst-libs/gst/gl/gstglupload.c

index f94ddf4..0ff969e 100644 (file)
@@ -178,6 +178,7 @@ _caps_intersect_texture_target (GstCaps * caps, GstGLTextureTarget target_mask)
 
   ret = gst_caps_intersect_full (caps, target, GST_CAPS_INTERSECT_FIRST);
 
+  g_value_unset (&targets);
   gst_caps_unref (target);
   return ret;
 }