mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
datetime: Fix memory leak in the unit test by unreffing GstDateTime instance after usage
This commit is contained in:
parent
649634a98f
commit
41c04c7471
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue