[opengtl-commits] [154] sounds like the cloned module need to be deleted after

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 154
Author:   cyrille
Date:     2008-04-29 12:50:02 +0200 (Tue, 29 Apr 2008)

Log Message:
-----------
sounds like the cloned module need to be deleted after

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp	2008-04-29 10:41:53 UTC (rev 153)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp	2008-04-29 10:50:02 UTC (rev 154)
@@ -284,6 +284,7 @@
     llvm::Linker linker("", d->module);
     linker.LinkInModule( clone );
     linker.releaseModule();
+    delete clone;
     // Append the function coming from the imported module
     std::list<GTLCore::Function*> functions = m->functions();
     OCTL_DEBUG(functions.size());


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/