Delete allocated memory in main
This commit is contained in:
parent
8a19a4af7a
commit
3852065c95
@ -174,7 +174,12 @@ int main() {
|
||||
lastTime = curTime;
|
||||
}
|
||||
|
||||
delete screenShader;
|
||||
delete skyboxShader;
|
||||
delete flatShader()
|
||||
lua->Close();
|
||||
delete lua;
|
||||
|
||||
glfwDestroyWindow(window);
|
||||
glfwTerminate();
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user