Re: Memory leaks
- From: Michael Torrie <torriem gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Memory leaks
- Date: Wed, 09 Feb 2011 17:50:09 -0700
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]