Re: Testing for memory leaks in GTK
- From: Morten Welinder <mortenw gnome org>
- To: gtk-devel-list gnome org
- Subject: Re: Testing for memory leaks in GTK
- Date: Tue, 5 Jan 2010 08:51:18 -0500
You probably need to end with something like this
(from Gnumeric):
{
GSList *displays;
gdk_flush();
while (g_main_context_iteration (NULL, FALSE))
;/* nothing */
displays = gdk_display_manager_list_displays
(gdk_display_manager_get ());
g_slist_foreach (displays, (GFunc)gdk_display_close, NULL);
g_slist_free (displays);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]