From: <sl...@ke...> - 2010-08-19 09:11:53
|
Module: gstreamer Branch: master Commit: 41c04c7471413736191bcad95e2278975580fc94 URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=41c04c7471413736191bcad95e2278975580fc94 Author: Sebastian Dröge <seb...@co...> Date: Thu Aug 19 11:11:28 2010 +0200 datetime: Fix memory leak in the unit test by unreffing GstDateTime instance after usage --- tests/check/gst/gstdatetime.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tests/check/gst/gstdatetime.c b/tests/check/gst/gstdatetime.c index 59738a3..8fea42a 100644 --- a/tests/check/gst/gstdatetime.c +++ b/tests/check/gst/gstdatetime.c @@ -101,6 +101,8 @@ GST_START_TEST (test_GstDateTime_get_dmy) assert_equals_int (gst_date_time_get_year (dt), tt.tm_year + 1900); assert_equals_int (gst_date_time_get_month (dt), tt.tm_mon + 1); assert_equals_int (gst_date_time_get_day (dt), tt.tm_mday); + + gst_date_time_unref (dt); } GST_END_TEST; |