]> git.saurik.com Git - cycript.git/blobdiff - Library.cpp
Fixed all of the memory leaks caused by the new identifier renamer.
[cycript.git] / Library.cpp
index 8068e821bae4f8b2b3aa7a339c1459e93f60c9a0..2b85f96653cd67d353edc1d01c20038ce7b779f9 100644 (file)
@@ -59,6 +59,7 @@
 
 #include "Error.hpp"
 #include "String.hpp"
+#include "Execute.hpp"
 
 /* C Strings {{{ */
 template <typename Type_>
@@ -251,10 +252,11 @@ extern "C" void CydgetPoolParse(apr_pool_t *pool, const uint16_t **data, size_t
     if (parser.parse() != 0 || !driver.errors_.empty())
         return;
 
-    CYContext context(driver.pool_);
+    CYOptions options;
+    CYContext context(driver.pool_, options);
     driver.program_->Replace(context);
     std::ostringstream str;
-    CYOutput out(str);
+    CYOutput out(str, options);
     out << *driver.program_;
     std::string code(str.str());