Просмотр исходного кода

Fix leak when freeing compiler stream

James Urquhart 11 лет назад
Родитель
Сommit
73c51e5d1a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Engine/source/console/compiler.h

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

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