Check before freeing image.data
This commit is contained in:
parent
f66ae2366f
commit
b500241ffa
|
|
@ -457,7 +457,7 @@ Image LoadImageFromScreen(void)
|
|||
// Unload image from CPU memory (RAM)
|
||||
void UnloadImage(Image image)
|
||||
{
|
||||
RL_FREE(image.data);
|
||||
if (image.data != NULL) RL_FREE(image.data);
|
||||
}
|
||||
|
||||
// Export image data to file
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user