[glib] GDateTime test: plug a couple of leaks



commit dcbfeb579a0890c3e3251f4c1ce0c16dc46f7c72
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Sep 2 21:03:33 2011 -0400

    GDateTime test: plug a couple of leaks

 glib/tests/gdatetime.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index 4140251..b47f02b 100644
--- a/glib/tests/gdatetime.c
+++ b/glib/tests/gdatetime.c
@@ -1084,6 +1084,8 @@ test_all_dates (void)
                 else
                   week_num++;
               }
+
+            g_date_time_unref (dt);
           }
     }
 
@@ -1103,6 +1105,7 @@ test_z (void)
   gchar *p = g_date_time_format (dt, "%z");
   g_assert_cmpstr (p, ==, "-0800");
   g_date_time_unref (dt);
+  g_time_zone_unref (tz);
   g_free (p);
 }
 



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