NULL pointer after free
This commit is contained in:
parent
19cb656254
commit
351d600eba
@ -100,5 +100,6 @@ int text_texture_frame_destroy(text_texture_frame* text_texture_frame)
|
|||||||
text_texture_destroy(&text_texture_frame->textures[i]);
|
text_texture_destroy(&text_texture_frame->textures[i]);
|
||||||
}
|
}
|
||||||
free(text_texture_frame->textures);
|
free(text_texture_frame->textures);
|
||||||
|
text_texture_frame->textures = NULL;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user