CVSROOT: /home/cvs
Module name: freesci
Changes by: cvsuser 01/01/19 18:14:47
Modified files:
. : ChangeLog
src : main.c
src/engine : game.c kfile.c kgraphics.c kscripts.c
savegame.c savegame.cfsml
src/include : engine.h resource.h scitypes.h
src/scicore : resource.c tools.c
Log message:
* Fixed major memory leak in kgraphics.c
* Removed usage of readdir() and friends and replaced by abstracted
sci_init_dir(), sci_find_first(), sci_find_next(), sci_finish_dir()
mechanism (based on suggestions by Petr)
* provided strn?casecmp() on Win32 by #defining strn?icmp() appropriately
(by Petr)
* Various #defines to fix problems generated by the glib.h removal on
Win32 (by Petr)
Sorry for being so late with all this, but, well, I have been busy, and
you've already heard about what happened to my router's HD (did I mention
my car broke down and my cat was abducted by Aliens?)
Anyway, the memory leak fix is finally in. The remaining leaks are very
minor; some of them might actually be constant in size (i.e., not really
leaks at all), but I'll try to have a look at them tomorrow.
Note that I haven't had a closer look at savegame restoring yet- I'm
pretty sure a major load of bugs is hiding in there...
BTW: Please don't use __FUNCTION__ outside of #ifdef (__GNUC__) blocks. I
like it as much as you do, but some compilers disagree.
-- Christoph