mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
GDateTime test: plug a couple of leaks
This commit is contained in:
parent
1b04f0d973
commit
dcbfeb579a
@ -1084,6 +1084,8 @@ test_all_dates (void)
|
|||||||
else
|
else
|
||||||
week_num++;
|
week_num++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_date_time_unref (dt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1103,6 +1105,7 @@ test_z (void)
|
|||||||
gchar *p = g_date_time_format (dt, "%z");
|
gchar *p = g_date_time_format (dt, "%z");
|
||||||
g_assert_cmpstr (p, ==, "-0800");
|
g_assert_cmpstr (p, ==, "-0800");
|
||||||
g_date_time_unref (dt);
|
g_date_time_unref (dt);
|
||||||
|
g_time_zone_unref (tz);
|
||||||
g_free (p);
|
g_free (p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user