On 27/01/2008, Kurosu <[EMAIL PROTECTED]> wrote:
> Kurosu a écrit :
> > I've been introducing a CleanUp() static method in those I found, so as
> > to delete the singleton of the considered class. This has so far removed
> > about 1MB of leaks on program exit, but a big number of them remains.
>
> As a side note, forcing object destruction underlined some code errors,
> for instance in the Font destructor, which probably (not yet confirmed)
> caused problems such as bug #10866.
>
> Because the process memory will be released anyway and destructor calls
> on end of game mostly take time for nothing, maybe we should put such
> calls behing a #ifdef DEBUG.

Doing that would mean to do a half assed job. If we rely on the
famework to do the job for us, we'll end up not using the CleanUp
function at all.

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à