datetime: Fix leak in test
authorStef Walter <stefw@gnome.org>
Sat, 9 Nov 2013 19:29:04 +0000 (20:29 +0100)
committerStef Walter <stefw@gnome.org>
Sun, 10 Nov 2013 21:42:57 +0000 (22:42 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711751

tests/datetime.c

index 6ee38c8..4f27796 100644 (file)
@@ -38,6 +38,7 @@ main (int argc, char *argv[])
   str = g_date_time_format (dt, fmt);
   g_print ("%s\n", str);
   g_free (str);
+  g_date_time_unref (dt);
 
   return 0;
 }