check/gst/gstbuffer.c: Plug leak in test case and fix 'make check-valgrind'

Original commit message from CVS:
* check/gst/gstbuffer.c: (test_make_writable):
Plug leak in test case and fix 'make check-valgrind'
This commit is contained in:
Tim-Philipp Müller 2005-09-27 13:25:18 +00:00
parent 246fee258f
commit 7d1cb339da
3 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-09-27 Tim-Philipp Müller <tim at centricular dot net>
* check/gst/gstbuffer.c: (test_make_writable):
Plug leak in test case and fix 'make check-valgrind'
2005-09-27 Tim-Philipp Müller <tim at centricular dot net> 2005-09-27 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstbuffer.c: (gst_subbuffer_init): * gst/gstbuffer.c: (gst_subbuffer_init):

View file

@ -240,6 +240,7 @@ GST_START_TEST (test_make_writable)
buf2 = gst_buffer_make_writable (buf); buf2 = gst_buffer_make_writable (buf);
fail_unless (buf != buf2, "_make_writable() should have returned a copy!"); fail_unless (buf != buf2, "_make_writable() should have returned a copy!");
gst_buffer_unref (buf2); gst_buffer_unref (buf2);
gst_buffer_unref (buf);
} }
GST_END_TEST; GST_END_TEST;

View file

@ -240,6 +240,7 @@ GST_START_TEST (test_make_writable)
buf2 = gst_buffer_make_writable (buf); buf2 = gst_buffer_make_writable (buf);
fail_unless (buf != buf2, "_make_writable() should have returned a copy!"); fail_unless (buf != buf2, "_make_writable() should have returned a copy!");
gst_buffer_unref (buf2); gst_buffer_unref (buf2);
gst_buffer_unref (buf);
} }
GST_END_TEST; GST_END_TEST;