From 44d53082ebcef0c3a60b9a2327a7223ea0ecbfe1 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 26 Jan 2023 22:41:38 -0500 Subject: [PATCH] Fix memory leak in SaveRenderer (not cleaned up on exit) --- src/simulation/SaveRenderer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/simulation/SaveRenderer.cpp b/src/simulation/SaveRenderer.cpp index 48db5cde7..4efd83fc2 100644 --- a/src/simulation/SaveRenderer.cpp +++ b/src/simulation/SaveRenderer.cpp @@ -84,4 +84,7 @@ VideoBuffer * SaveRenderer::Render(GameSave * save, bool decorations, bool fire, SaveRenderer::~SaveRenderer() { + delete ren; + delete sim; + delete g; }