From 3852065c9500a7952a0e0da1fb17f3ed9713865f 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;