mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-10 10:22:20 +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
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue