tests: camerabin2: fix mainloop leaks
authorThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 27 Dec 2011 13:23:18 +0000 (10:23 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 27 Dec 2011 19:40:38 +0000 (16:40 -0300)
tests/check/elements/camerabin2.c

index e830bfc..4681a91 100644 (file)
@@ -347,6 +347,7 @@ extract_jpeg_tags (const gchar * filename, gint num)
   gst_object_unref (bus);
   g_source_remove (source);
   gst_object_unref (pipeline);
+  g_main_loop_unref (loop);
 }
 
 static void
@@ -563,6 +564,7 @@ check_file_validity (const gchar * filename, gint num, GstTagList * taglist,
   g_source_remove (source);
   gst_object_unref (bus);
   gst_object_unref (playbin);
+  g_main_loop_unref (loop);
 
   return TRUE;
 }