Hans-Werner Hilse wrote:
Hi,

On Wed, 02 Aug 2006 13:49:04 +0200 gwe <[EMAIL PROTECTED]> wrote:

I'm sorry
I post only the end of log file of valgrind (the entire file is very big
~22500 lines).
This is the result of execute the source code :
==13767== LEAK SUMMARY:
==13767==    definitely lost: 36 bytes in 1 blocks.
==13767==    indirectly lost: 120 bytes in 10 blocks.
==13767==      possibly lost: 40,264 bytes in 47 blocks.
==13767==    still reachable: 118,673 bytes in 1,963 blocks.
==13767==         suppressed: 0 bytes in 0 blocks.

OK, but memory usage doesn't add up while the program is running,
right? I think it may be just the missing call to gtk_exit(EXIT_SUCCESS)
instead of return EXITSUCCESS. At least gtk_exit() is supposed to do
final cleanup work.

Ah yes, I wasn't aware that there was a function for this. You should definitely use this in place of the delete statement because it will do deeper cleaning.

R
--
[email protected] mailing list

Reply via email to