Przeglądaj źródła

call s_clean before pop context

szdytom 1 rok temu
rodzic
commit
2c5f46f096
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/compiler/compiler.cpp

+ 1 - 0
src/compiler/compiler.cpp

@@ -101,6 +101,7 @@ Error* Compiler::pop_context() noexcept{
 
         assert(func->type != FuncType::UNSET);
     }
+    contexts.back().s_clean();
     contexts.pop_back();
     return NULL;
 }