[Padre-dev] memory leak in menu creation and destroying
Gabor Szabo
szabgab at gmail.com
Wed Mar 11 15:21:49 PDT 2009
On Wed, Mar 11, 2009 at 11:37 PM, Mattia Barbon <mattia.barbon at libero.it> wrote:
> Gabor Szabo wrote:
>>
>> The following script creates a window with a menu.
>> When clicking on the File/Run menu option it will destroy and then
>> recreate
>> some of the menu items several times (100 by default).
>>
>> As I can see this script leaks memory.
>> If I run it as it is it leaks about 20-30 bytes per run.
>> If I enabled the event generation code as well which is currently
>> commented out then with each run the RES memory will grow by ~ 600 bytes.
>>
>> Any idea why is that and how could I avoid?
>> Do I need to explicitly remove the event handlers? How ?
>
> How exacty do you mesaure it? I ask because valgrind reports
> a lot of potential errors, and I'd like to be sure to know what
> to search for.
looking at htop of the process.
Gabor
More information about the Padre-dev
mailing list