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