[0.10] gst-plugins-bad: tests: camerabin2: fix mainloop leaks

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 4 10:07:55 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: d47d9ece77bcd2d7df78b11b42e4d42792719cff
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=d47d9ece77bcd2d7df78b11b42e4d42792719cff

Author: Thiago Santos <thiago.sousa.santos at collabora.com>
Date:   Tue Dec 27 10:23:18 2011 -0300

tests: camerabin2: fix mainloop leaks

---

 tests/check/elements/camerabin2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/check/elements/camerabin2.c b/tests/check/elements/camerabin2.c
index e830bfc..4681a91 100644
--- a/tests/check/elements/camerabin2.c
+++ b/tests/check/elements/camerabin2.c
@@ -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;
 }



More information about the gstreamer-commits mailing list