tests:glupload: fix caps memory leak
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 13 Nov 2015 02:04:34 +0000 (11:04 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:11 +0000 (19:32 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=758039

tests/check/libs/gstglupload.c

index d048196..f6e1d2b 100644 (file)
@@ -185,6 +185,8 @@ GST_START_TEST (test_upload_data)
     i++;
   }
 
+  gst_caps_unref (in_caps);
+  gst_caps_unref (out_caps);
   gst_buffer_unref (inbuf);
   gst_buffer_unref (outbuf);
 }
@@ -239,6 +241,8 @@ GST_START_TEST (test_upload_buffer)
     i++;
   }
 
+  gst_caps_unref (in_caps);
+  gst_caps_unref (out_caps);
   gst_buffer_unref (buffer);
   gst_buffer_unref (outbuf);
 }