Code: Select all
==3818== Memcheck, a memory error detector
==3818== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==3818== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==3818== Command: ./test -v --leak-check=full
==3818==
==3818== Conditional jump or move depends on uninitialised value(s)
==3818== at 0x409B92C: ??? (in /usr/lib/libSDL-1.2.so.0.11.2)
==3818== by 0x4074355: ??? (in /usr/lib/libSDL-1.2.so.0.11.2)
==3818== by 0x4046965: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==3818== by 0x4046A36: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==3818== by 0x8048DC5: engine::init() (in /home/pythip/Desktop/engine/anim/test)
==3818== by 0x80497E8: main (in /home/pythip/Desktop/engine/anim/test)
==3818==
==3818== Invalid read of size 4
==3818== at 0x40FB3F8: TTF_SizeUNICODE (in /usr/lib/libSDL_ttf-2.0.so.0.6.3)
==3818== by 0x40FC3BE: TTF_RenderUNICODE_Solid (in /usr/lib/libSDL_ttf-2.0.so.0.6.3)
==3818== by 0x40FC84F: TTF_RenderText_Solid (in /usr/lib/libSDL_ttf-2.0.so.0.6.3)
==3818== by 0x804912D: graphics::load_files() (in /home/pythip/Desktop/engine/anim/test)
==3818== by 0x804980C: main (in /home/pythip/Desktop/engine/anim/test)
==3818== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3818==
==3818==
==3818== HEAP SUMMARY:
==3818== in use at exit: 153,414 bytes in 2,791 blocks
==3818== total heap usage: 16,476 allocs, 13,685 frees, 2,331,667 bytes allocated
==3818==
==3818== LEAK SUMMARY:
==3818== definitely lost: 18 bytes in 3 blocks
==3818== indirectly lost: 104 bytes in 4 blocks
==3818== possibly lost: 34,101 bytes in 1,355 blocks
==3818== still reachable: 119,191 bytes in 1,429 blocks
==3818== suppressed: 0 bytes in 0 blocks
==3818== Rerun with --leak-check=full to see details of leaked memory
==3818==
==3818== For counts of detected and suppressed errors, rerun with: -v
==3818== Use --track-origins=yes to see where uninitialised values come from
==3818== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 187 from 14)
Segmentation fault