mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-29 10:37:39 +00:00
Fix a small memory leak
This commit is contained in:
parent
65f0e194e0
commit
945e7a08f3
@ -2431,10 +2431,8 @@ test_menus (void)
|
||||
|
||||
gtk_widget_destroy (GTK_WIDGET (window));
|
||||
g_object_unref (builder);
|
||||
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
test_file (const gchar *filename)
|
||||
{
|
||||
@ -2474,7 +2472,6 @@ test_file (const gchar *filename)
|
||||
gtk_main ();
|
||||
|
||||
g_object_unref (builder);
|
||||
builder = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2719,6 +2716,9 @@ test_expose_object (void)
|
||||
|
||||
g_assert (external_object == G_OBJECT (builder));
|
||||
g_assert (external_object_swapped == G_OBJECT (builder));
|
||||
|
||||
g_object_unref (builder);
|
||||
g_object_unref (image);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user