gtk_widget_destroy memory leak
- From: "Guoling Gao" <gguoling gmail com>
- To: gtk-list gnome org
- Subject: gtk_widget_destroy memory leak
- Date: Fri, 12 Sep 2008 09:55:48 +0800
Hi,
I see memory usage is biger and biger during the same code running:
int main(int argc, char* argv[])
{
gtk_init(&argc, &argv);
GtkWidget* window;
while (TRUE)
{
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_set_app_paintable(window, TRUE);
gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
gtk_window_set_keep_above(GTK_WINDOW(window), TRUE);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_widget_set_size_request(window, 200, 200);
gtk_widget_realize(window);
gtk_widget_destroy(window);
}
gtk_main();
return 0;
}
If there are bugs in gtk_widget_destroy? It sames that the memory is not freed.
Wants help.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]