summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/textures.c b/src/textures.c
index d79cb3cb..01c9b2f5 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -353,7 +353,7 @@ Image LoadImageRaw(const char *fileName, int width, int height, int format, int
{
TraceLog(LOG_WARNING, "[%s] RAW image data can not be read, wrong requested format or size", fileName);
- if (image.data != NULL) free(image.data);
+ free(image.data);
}
else
{
@@ -414,10 +414,7 @@ RenderTexture2D LoadRenderTexture(int width, int height)
// Unload image from CPU memory (RAM)
void UnloadImage(Image image)
{
- if (image.data != NULL) free(image.data);
-
- // NOTE: It becomes anoying every time a texture is loaded
- //TraceLog(LOG_INFO, "Unloaded image data");
+ free(image.data);
}
// Unload texture from GPU memory (VRAM)