imagecapturebin: Don't leak message in the unit test
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 19 Dec 2010 11:12:12 +0000 (12:12 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 19 Dec 2010 11:12:12 +0000 (12:12 +0100)
tests/check/elements/imagecapturebin.c

index 860e3f5aa7776869aad0083244f08c1ca11136d8..58331c161253e2a4e5065a47d76bb0d4a272a056 100644 (file)
@@ -90,6 +90,7 @@ GST_START_TEST (test_simple_capture)
       GST_MESSAGE_EOS | GST_MESSAGE_ERROR);
   fail_unless (msg != NULL);
   fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_EOS);
+  gst_message_unref (msg);
 
   /* check there are N_BUFFERS files */
   for (i = 0; i < N_BUFFERS; i++) {