mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tests/check/elements/level.c: fix a leak, clean up at the end
Original commit message from CVS: * tests/check/elements/level.c: (GST_START_TEST): fix a leak, clean up at the end
This commit is contained in:
parent
62487ce3b5
commit
172c13714d
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-06-29 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* tests/check/elements/level.c: (GST_START_TEST):
|
||||
fix a leak, clean up at the end
|
||||
|
||||
2006-06-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
|
||||
|
|
|
@ -92,6 +92,7 @@ GST_START_TEST (test_int16)
|
|||
GstElement *level;
|
||||
GstBuffer *inbuffer, *outbuffer;
|
||||
GstBus *bus;
|
||||
GstCaps *caps;
|
||||
GstMessage *message;
|
||||
const GstStructure *structure;
|
||||
int i, j;
|
||||
|
@ -114,7 +115,9 @@ GST_START_TEST (test_int16)
|
|||
*data = 16536;
|
||||
++data;
|
||||
}
|
||||
gst_buffer_set_caps (inbuffer, gst_caps_from_string (LEVEL_CAPS_STRING));
|
||||
caps = gst_caps_from_string (LEVEL_CAPS_STRING);
|
||||
gst_buffer_set_caps (inbuffer, caps);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
/* create a bus to get the level message on */
|
||||
|
@ -175,7 +178,7 @@ GST_START_TEST (test_int16)
|
|||
fail_unless (gst_element_set_state (level,
|
||||
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
|
||||
ASSERT_OBJECT_REFCOUNT (level, "level", 1);
|
||||
gst_object_unref (level);
|
||||
cleanup_level (level);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue