[vmkit-commits] [vmkit] r98607 - /vmkit/trunk/lib/J3/Compiler/JavaLLVMCompiler.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Mon Mar 15 20:10:39 PDT 2010
Author: geoffray
Date: Mon Mar 15 22:10:39 2010
New Revision: 98607
URL: http://llvm.org/viewvc/llvm-project?rev=98607&view=rev
Log:
Delete the context when deleting the compiler.
Modified:
vmkit/trunk/lib/J3/Compiler/JavaLLVMCompiler.cpp
Modified: vmkit/trunk/lib/J3/Compiler/JavaLLVMCompiler.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/Compiler/JavaLLVMCompiler.cpp?rev=98607&r1=98606&r2=98607&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/Compiler/JavaLLVMCompiler.cpp (original)
+++ vmkit/trunk/lib/J3/Compiler/JavaLLVMCompiler.cpp Mon Mar 15 22:10:39 2010
@@ -99,10 +99,12 @@
}
JavaLLVMCompiler::~JavaLLVMCompiler() {
+ LLVMContext* Context = &(TheModule->getContext());
delete TheModule;
delete DebugFactory;
delete JavaFunctionPasses;
delete JavaNativeFunctionPasses;
+ delete Context;
}
namespace mvm {
More information about the vmkit-commits
mailing list