You are not logged in.

#1 2008-07-29 21:20:26

JustWoody
Member

GRRLIB_LoadTexture memory cleanup?

Is it wise to clean up the memory that the texture created by the GRRLIB_LoadTexture function when it is no longer needed?

If so, does anyone know how best to do this?

Offline

 

#2 2008-07-29 22:39:47

Crayon
Bad Mother Fucker

Re: GRRLIB_LoadTexture memory cleanup?

This topic was discussed a bit in the post: http://grrlib.santo.fr/forum/viewtopic.php?id=35

I think it should be

Code:

    if(ImgTexture)
        free(ImgTexture);

Offline

 

#3 2008-07-29 23:01:19

JustWoody
Member

Re: GRRLIB_LoadTexture memory cleanup?

Cheers crayon, probably being a bit lazy not doing a bit more digging myself smile)

Offline

 

Board footer

Powered by FluxBB