So ... I'm trying to fix some memory leaks from my GTK + 3 program. Although it would be nice to look at some simple examples to see if there are any cleaning things that I forget, but the hello_world program presented in the documentation also has leaks. (Valgrind output below).
Are these leaks acceptable? If so, is there some other application that I should use to debug GTK programs?
==13717== Memcheck, a memory error detector ==13717== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==13717== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==13717== Command: ./a ==13717== Hello World ==13717== ==13717== HEAP SUMMARY: ==13717== in use at exit: 1,578,162 bytes in 11,614 blocks ==13717== total heap usage: 45,699 allocs, 34,085 frees, 6,461,970 bytes allocated ==13717== ==13717== LEAK SUMMARY: ==13717== definitely lost: 2,560 bytes in 5 blocks ==13717== indirectly lost: 6,656 bytes in 207 blocks ==13717== possibly lost: 363,228 bytes in 1,937 blocks ==13717== still reachable: 1,205,718 bytes in 9,465 blocks ==13717== suppressed: 0 bytes in 0 blocks ==13717== Rerun with
the code:
Bill
source share