glupload: fix shader leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 19 May 2016 10:09:41 +0000 (13:09 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 21 Jun 2016 07:52:47 +0000 (10:52 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=766663

tests/check/libs/gstglupload.c

index 64d7a33..1befd41 100644 (file)
@@ -86,6 +86,8 @@ teardown (void)
   gst_object_unref (window);
   gst_object_unref (context);
   gst_object_unref (display);
+  if (shader)
+    gst_object_unref (shader);
 }
 
 static void