[glib/wip/gcleanup: 42/79] datetime: Fix leak in test



commit 32a9d258ac0542a73b6ed18f29d6eb7fffce78fb
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:29:04 2013 +0100

    datetime: Fix leak in test
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711751

 tests/datetime.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/datetime.c b/tests/datetime.c
index 6ee38c8..4f27796 100644
--- a/tests/datetime.c
+++ b/tests/datetime.c
@@ -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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]