CVSROOT:        /home/cvs
Module name:    freesci
Changes by:     cvsuser 01/01/15 16:14:15

Modified files:
        .              : ChangeLog 
        src            : main.c 
        src/engine     : game.c grammar.c scriptdebug.c 
        src/gfx        : operations.c resmgr.c widgets.c 
        src/gfx/drivers: ggi_driver.c 
        src/gfx/resource: sci_pic_0.c 
        src/include    : gfx_resmgr.h vocabulary.h 
        src/scicore    : console.c resource.c vocab_debug.c 

Log message:
* Added command line interface to dmalloc (dm_* commands)
* Fixed a few minor bugs in some places I don't quite recall
* Fixed memory leak (ca. 40k) in grammar.c
* Fixed _severe_ memory leak (ca. 5 MB) in resource.c

That last one was very long-standing, too- all decompressed resources were
present in memory /twice/.

dmalloc review:
So far, I _really_ like this thing :-)
However, it bails out during GGI deinitialization; setting debug mode to
3 ("dm_debug 3" in the command console) works around this and still allows
searching for memory leaks.

Those two leaks were responsible for most (ca. 700) of the dropped pointers;
there are roughly 50 remaining (in 9 places). This does explicitly *not*
include memory lost during game restoration, which I'll test after that.

-- Christoph


Reply via email to