override: Fix leaks in test
authorStef Walter <stefw@gnome.org>
Sun, 10 Nov 2013 14:56:17 +0000 (15:56 +0100)
committerStef Walter <stefw@gnome.org>
Mon, 11 Nov 2013 06:26:37 +0000 (07:26 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711779

tests/gobject/override.c

index 95b4023..47702d7 100644 (file)
@@ -374,6 +374,8 @@ test (GType        type,
 
       if (strcmp (ret, expected_retval) != 0)
         failed = TRUE;
+
+      g_free (ret);
     }
 
 #ifndef VERBOSE
@@ -392,6 +394,7 @@ test (GType        type,
     }
 
   g_string_free (test_string, TRUE);
+  g_object_unref (self);
 }
      
 int