From 73c51e5d1ae4798c07cf07a9458307b6bb2e9df8 Mon Sep 17 00:00:00 2001 From: James Urquhart Date: Sun, 7 Sep 2014 21:49:05 +0100 Subject: [PATCH] Fix leak when freeing compiler stream --- Engine/source/console/compiler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine/source/console/compiler.h b/Engine/source/console/compiler.h index c4b4f94af..2eb6da7e6 100644 --- a/Engine/source/console/compiler.h +++ b/Engine/source/console/compiler.h @@ -328,7 +328,10 @@ public: reset(); if (mCode) + { + dFree(mCode->data); delete mCode; + } } U8 *allocCode(U32 sz);