mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
various GLib tests: plug memory leaks
These don't really matter, since it's test code, but they do obscure real leaks in the library. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666115 Acked-by: Matthias Clasen <mclasen@redhat.com>
This commit is contained in:
@@ -56,6 +56,8 @@ test_define_boxed (void)
|
||||
g_assert_cmpstr (b->bla, ==, "bla");
|
||||
|
||||
g_boxed_free (MY_TYPE_BOXED, b);
|
||||
|
||||
g_free (a.bla);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -25,6 +25,7 @@ test_param_value (void)
|
||||
g_param_spec_unref (p2);
|
||||
|
||||
g_value_unset (&value);
|
||||
g_param_spec_unref (pp);
|
||||
}
|
||||
|
||||
static gint destroy_count;
|
||||
|
Reference in New Issue
Block a user