tests: fix some leaks in new flagset checks
authorTim-Philipp Müller <tim@centricular.com>
Sat, 30 May 2015 12:01:09 +0000 (13:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 30 May 2015 12:02:36 +0000 (13:02 +0100)
tests/check/gst/gstcaps.c
tests/check/gst/gststructure.c

index dbf933b..b05ef58 100644 (file)
@@ -982,6 +982,7 @@ GST_START_TEST (test_intersect_flagset)
 
   GST_DEBUG ("Serialised caps to %s", test_string);
   c2 = gst_caps_from_string (test_string);
+  g_free (test_string);
 
   fail_unless (gst_caps_is_equal (c1, c2));
 
index ae1ef53..54e9830 100644 (file)
@@ -769,6 +769,7 @@ GST_START_TEST (test_flagset)
 
   fail_unless (out_flags == test_flags);
   fail_unless (out_mask == test_mask);
+  gst_structure_free (s);
 }
 
 GST_END_TEST;