gst_check_teardown_src_pad (dec);
gst_check_teardown_sink_pad (dec);
gst_check_teardown_element (dec);
+
+ g_list_free_full (events, (GDestroyNotify) gst_event_unref);
+ events = NULL;
}
static GstBuffer *
TEST_VIDEO_WIDTH, "height", G_TYPE_INT, TEST_VIDEO_HEIGHT, "framerate",
GST_TYPE_FRACTION, TEST_VIDEO_FPS_N, TEST_VIDEO_FPS_D, NULL);
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_caps (caps)));
-
+ gst_caps_unref (caps);
}
#define NUM_BUFFERS 1000
fail_unless (events_iter == NULL);
g_list_free_full (buffers, (GDestroyNotify) gst_buffer_unref);
- g_list_free_full (events, (GDestroyNotify) gst_event_unref);
buffers = NULL;
- events = NULL;
cleanup_videodecodertest ();
}