From: Mark Nauwelaerts Date: Mon, 2 Jul 2012 12:22:30 +0000 (+0200) Subject: tests: video: ensure initialization and plug sample leak X-Git-Tag: RELEASE-0.11.93~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=563d3dd0f6805fe9640cf77ef26568a73fc310c1;p=platform%2Fupstream%2Fgst-plugins-base.git tests: video: ensure initialization and plug sample leak --- diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c index a4e98c73c..6bc4fac34 100644 --- a/tests/check/libs/video.c +++ b/tests/check/libs/video.c @@ -540,6 +540,7 @@ GST_START_TEST (test_video_formats_rgb) GstCaps *caps; GstStructure *structure; + gst_video_info_init (&vinfo); gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_RGB, 800, 600); vinfo.par_n = 1; vinfo.par_d = 1; @@ -840,6 +841,7 @@ GST_START_TEST (test_convert_frame_async) gst_sample_unref (cf_data.sample); gst_caps_unref (to_caps); + gst_sample_unref (from_sample); g_main_loop_unref (loop); }