[CHG] Another NULL pointer check

This commit is contained in:
csBlueChip 2009-08-28 14:35:05 +00:00
parent 34a1991cd9
commit 34e06e1dab

View file

@ -74,7 +74,7 @@ void GRRLIB_FlushTex (GRRLIB_texImg *tex) {
INLINE INLINE
void GRRLIB_FreeTexture (GRRLIB_texImg *tex) { void GRRLIB_FreeTexture (GRRLIB_texImg *tex) {
if(tex != NULL) { if(tex != NULL) {
free(tex->data); if (tex->data != NULL) free(tex->data) ;
free(tex); free(tex);
tex = NULL; tex = NULL;
} }