Valgrind?
I do not know whether it is useful as not long time ago I played with FlowLayout example (QT 4.2) and valgrind gave me:
==6237== LEAK SUMMARY:
==6237== definitely lost: 88 bytes in 3 blocks.
==6237== indirectly lost: 120 bytes in 10 blocks.
==6237== possibly lost: 744 bytes in 3 blocks.
==6237== still reachable: 322,563 bytes in 4,588 blocks.
==6237== suppressed: 0 bytes in 0 blocks.
==6237== LEAK SUMMARY:
==6237== definitely lost: 88 bytes in 3 blocks.
==6237== indirectly lost: 120 bytes in 10 blocks.
==6237== possibly lost: 744 bytes in 3 blocks.
==6237== still reachable: 322,563 bytes in 4,588 blocks.
==6237== suppressed: 0 bytes in 0 blocks.
To copy to clipboard, switch view to plain text mode
Now my 1600+ lines application gives me:
==6214== LEAK SUMMARY:
==6214== definitely lost: 449 bytes in 32 blocks.
==6214== indirectly lost: 1,526 bytes in 36 blocks.
==6214== possibly lost: 744 bytes in 3 blocks.
==6214== still reachable: 331,034 bytes in 4,629 blocks.
==6214== suppressed: 0 bytes in 0 blocks.
==6214== LEAK SUMMARY:
==6214== definitely lost: 449 bytes in 32 blocks.
==6214== indirectly lost: 1,526 bytes in 36 blocks.
==6214== possibly lost: 744 bytes in 3 blocks.
==6214== still reachable: 331,034 bytes in 4,629 blocks.
==6214== suppressed: 0 bytes in 0 blocks.
To copy to clipboard, switch view to plain text mode
So I suppose that some of those are because of qt libraries... Am I right?
Anyway, I may write some parts of valgrind message after checking my application.
Bookmarks