8e284a70b7cca7d1e8e74b4cf2a54a2754ea8512
Trying to find the bug in tower.cxx (that crashes fgfs quite frequently for me!), I'm playing with valgrind again. Until I'm in the ATC subsystem there will be some other bugs and nitpicking along the way. valgrind doesn't like that imgage->tmp is once allocated with new and once with new[], sometimes with malloc() (via map), and sometimes freed with delete (not delete[]!) and sometimes with free(). With simple types such as GLubyte this shouldn't really make a difference, but anyway. Also, I promised that I'd send patches for "if (foo) delete foo;" as I'm making other changes to concerned files. texture.cxx is one with a few occurrences thereof. (Remember: C++ explicitly allows to delete null-pointers, so this check is redundant, and hence not tolerated in other projects, such as KDE. Doesn't have to impress us, of course. :-) Also, fixes 4 signed/unsigned warnings (gcc 3.3.4)
[ Nothing here at this time. ]
Description
Languages
C++
85.5%
C
13.1%
CMake
1.4%