free shader buffer when done compiling
This commit is contained in:
parent
ffeb906f7b
commit
5a50b11481
|
@ -73,6 +73,8 @@ ShaderCompileResult readAndCompileShaderFromFile(const char* filepath, GLenum sh
|
|||
result.success = true;
|
||||
}
|
||||
|
||||
free((void*)shaderSource);
|
||||
|
||||
return result; // Return the ShaderCompileResult struct
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue