Re: [AD] memory leak in readbmp.c?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In reply to Peter Wang <tjaden@xxxxxxxxxx>:
>in register_bitmap_file_type_exit:
>
>   #if defined(CONSTRUCTOR_FUNCTION) && defined(DESTRUCTOR_FUNCTION)
>      _register_bitmap_file_type_init();
>   #endif
>
>Do you not get (small) memory leaks here?  If it's not worth fixing,
>I'll put in a comment.

Nope; the destructor frees the memory allocated by 
_register_bitmap_file_type_init().

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/