valgrind утверждает что якобы один отдел не чистится. (как-то не красиво)
Может кто 3нает что не так?
Исходный код
==17587== HEAP SUMMARY:
==17587== in use at exit: 186,021 bytes in 1,231 blocks
==17587== total heap usage: 118,863 allocs, 117,632 frees, 22,626,198 bytes allocated
==17587==
==17587== 32,768 bytes in 1 blocks are definitely lost in loss record 1,031 of 1,032
==17587== at 0x4C2AD10: calloc (vg_replace_malloc.c:623)
==17587== by 0x8CCD2C8: MikMod_calloc (in /usr/lib/x86_64-linux-gnu/libmikmod.so.3.3.0)
==17587== by 0x8CB68CD: ??? (in /usr/lib/x86_64-linux-gnu/libmikmod.so.3.3.0)
==17587== by 0x8CCEE29: ??? (in /usr/lib/x86_64-linux-gnu/libmikmod.so.3.3.0)
==17587== by 0x8CCEF93: MikMod_Init (in /usr/lib/x86_64-linux-gnu/libmikmod.so.3.3.0)
==17587== by 0x56348C6: ??? (in /usr/lib/x86_64-linux-gnu/libSDL_sound-1.0.so.1.0.2)
==17587== by 0x5631E82: Sound_Init (in /usr/lib/x86_64-linux-gnu/libSDL_sound-1.0.so.1.0.2)
....
==17587== by 0x6122CA: main (main.cpp:40)
==17587==
==17587== LEAK SUMMARY:
==17587== definitely lost: 32,768 bytes in 1 blocks
==17587== indirectly lost: 0 bytes in 0 blocks
==17587== possibly lost: 21,588 bytes in 475 blocks
==17587== still reachable: 131,665 bytes in 755 blocks
==17587== suppressed: 0 bytes in 0 blocks
==17587== Reachable blocks (those to which a pointer was found) are not shown.
==17587== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==17587==
==17587== For counts of detected and suppressed errors, rerun with: -v
==17587== Use --track-origins=yes to see where uninitialised values come from
==17587== ERROR SUMMARY: 1832 errors from 546 contexts (suppressed: 1 from 1)
Killed
Показать весь код
сдл-саунд при старте инициали3ируется и при стопе 3акрывается как положенно (я так думаю, по крайней мере все return values бе3ошибочные).
сдл такой версии стоит:
Исходный код
dpkg -l | grep libsdl
ii libsdl-image-gst 3.2.4-2.1 all SDL_image bindings for GNU Smalltalk
ii libsdl-image1.2:amd64 1.2.12-5+b5 amd64 Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-image1.2-dbg:amd64 1.2.12-5+b5 amd64 Image loading library for Simple DirectMedia Layer 1.2, debugging
ii libsdl-image1.2-dev:amd64 1.2.12-5+b5 amd64 Image loading library for Simple DirectMedia Layer 1.2, development files
ii libsdl-mixer1.2:amd64 1.2.12-11+b1 amd64 Mixer library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-mixer1.2-dev:amd64 1.2.12-11+b1 amd64 Mixer library for Simple DirectMedia Layer 1.2, development files
ii libsdl-pango-dev 0.1.2-6 amd64 text rendering with Pango in SDL applications (development)
ii libsdl-pango1:amd64 0.1.2-6 amd64 text rendering with Pango in SDL applications (shared library)
ii libsdl-sound1.2:amd64 1.0.3-7+b1 amd64 Sound library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-sound1.2-dev:amd64 1.0.3-7+b1 amd64 Sound library for Simple DirectMedia Layer 1.2, development files
ii libsdl-stretch-0-3:amd64 0.3.1-4 amd64 stretch functions for Simple DirectMedia Layer
ii libsdl-stretch-dev 0.3.1-4 amd64 development files for SDL_stretch library
ii libsdl-ttf2.0-0:amd64 2.0.11-3 amd64 TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-ttf2.0-dev:amd64 2.0.11-3 amd64 TrueType Font library for Simple DirectMedia Layer 1.2, development files
ii libsdl1.2-dev 1.2.15-10+b1 amd64 Simple DirectMedia Layer development files
ii libsdl1.2debian:amd64 1.2.15-10+b1 amd64 Simple DirectMedia Layer
Показать весь код