imagecapturebin: Don't leak message in the unit test

This commit is contained in:
Sebastian Dröge 2010-12-19 12:12:12 +01:00
parent b297490b2a
commit 16b1b967ad

View file

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