所以...我正试图消除我的GTK + 3程序中的一些内存泄漏.我虽然回顾一些简单的例子来看看是否有一些我忘记的清理工具是个好主意,但文档中提供的hello_world程序也有漏洞.(下面的Valgrind输出).
这些泄漏是否可以接受?如果是这样,我应该使用其他一些应用来调试GTK程序吗?
==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 …Run Code Online (Sandbox Code Playgroud)