From a51c3d04b2b798c974e2b32fb881e7c910b5f572 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Wed, 27 Jan 2021 16:37:23 -0600 Subject: [PATCH] Delete allocated memory in main --- core/couch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/couch.cpp b/core/couch.cpp index 716b652..73af364 100644 --- a/core/couch.cpp +++ b/core/couch.cpp @@ -174,7 +174,12 @@ int main() { lastTime = curTime; } + delete screenShader; + delete skyboxShader; + delete flatShader() lua->Close(); + delete lua; + glfwDestroyWindow(window); glfwTerminate(); return 0;