From 5055261d8f53a3edac135ca07021b2c194dbf7fe Mon Sep 17 00:00:00 2001 From: jaroshevskii <72662383+jaroshevskii@users.noreply.github.com> Date: Thu, 19 May 2022 02:02:17 +0300 Subject: [PATCH] Added unload texture function Raylib is written in C, so cleaning up resources (such as textures, images, or sounds) must be done manually --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6fc8a9b..4181128 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,7 +27,8 @@ int main() EndDrawing(); } - CloseWindow(); + UnloadTexture(texture); + CloseWindow(); return 0; }