aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tuplr.cpp')
-rw-r--r--tuplr.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tuplr.cpp b/tuplr.cpp
index af7dae1..bc5ea0b 100644
--- a/tuplr.cpp
+++ b/tuplr.cpp
@@ -374,7 +374,9 @@ main(int argc, char** argv)
TEnv tenv(penv);
initLang(penv, tenv);
- CEnv* cenv = newCenv(penv, tenv);
+ CEngine engine = tuplr_new_engine();
+ CEnv* cenv = new CEnv(penv, tenv, engine);
+
cenv->push();
Object::pool.lock();
@@ -450,7 +452,9 @@ main(int argc, char** argv)
os.close();
}
- freeCenv(cenv);
+ delete cenv;
+ tuplr_free_engine(engine);
+
return ret;
}