free shader buffer when done compiling

This commit is contained in:
Luca Conte 2025-03-09 22:44:32 +01:00
parent ffeb906f7b
commit 5a50b11481
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ ShaderCompileResult readAndCompileShaderFromFile(const char* filepath, GLenum sh
result.success = true; result.success = true;
} }
free((void*)shaderSource);
return result; // Return the ShaderCompileResult struct return result; // Return the ShaderCompileResult struct
} }