Re: memory leak in standard GtkWindow

>        gtk_init(&argc, &argv);
>        g_mem_set_vtable(glib_mem_profiler_table);

Check the documentation for g_mem_set_vtable(). As it is in your
message, the programs crashes, also on Linux by the way.

Once you move the call to g_mem_set_vtable() first in main(), the
program completes without a crash.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]