datetime: Fix memory leak in the unit test by unreffing GstDateTime instance after...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 19 Aug 2010 09:11:28 +0000 (11:11 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 19 Aug 2010 09:11:28 +0000 (11:11 +0200)
tests/check/gst/gstdatetime.c

index 59738a3..8fea42a 100644 (file)
@@ -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;