mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-26 08:42:19 +00:00
[CHG] Another NULL pointer check
This commit is contained in:
parent
34a1991cd9
commit
34e06e1dab
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ void GRRLIB_FlushTex (GRRLIB_texImg *tex) {
|
|||
INLINE
|
||||
void GRRLIB_FreeTexture (GRRLIB_texImg *tex) {
|
||||
if(tex != NULL) {
|
||||
free(tex->data);
|
||||
if (tex->data != NULL) free(tex->data) ;
|
||||
free(tex);
|
||||
tex = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue