Re: Memory leaks



On 02/09/2011 02:29 PM, John Emmas wrote:
But my original example looked like this:-


Gtk::Main *app = new Gtk::Main (&argc, &argv);

delete app;

Change it to this and then look at memory use:

for (;;) {
        Gtk::Main *app = new Gtk::Main (&argc, &argv);
        delete app;
}

If memory usage grows then GTK leaks.  If it doesn't, there is no leak.



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