Browse Source

Fix leak when freeing compiler stream

James Urquhart 11 years ago
parent
commit
73c51e5d1a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/console/compiler.h

+ 3 - 0
Engine/source/console/compiler.h

@@ -328,7 +328,10 @@ public:
       reset();
       reset();
       
       
       if (mCode)
       if (mCode)
+      {
+         dFree(mCode->data);
          delete mCode;
          delete mCode;
+      }
    }
    }
    
    
    U8 *allocCode(U32 sz);
    U8 *allocCode(U32 sz);