[pygobject/llvm: 11/12] Do not call g_module_close before using symbols



commit d11cb18b649da219a3e19141e4945ab9e71c0c27
Author: Johan Dahlin <johan gnome org>
Date:   Thu Jul 8 14:52:15 2010 -0300

    Do not call g_module_close before using symbols
    
    We cannot reliably use symbols from a module after
    we called dlclose() on them :-)

 gi/llvm-compiler.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gi/llvm-compiler.cpp b/gi/llvm-compiler.cpp
index dbb1e10..acf0355 100644
--- a/gi/llvm-compiler.cpp
+++ b/gi/llvm-compiler.cpp
@@ -439,7 +439,6 @@ LLVMCompiler::getNativeAddress(GIFunctionInfo *info)
   const gchar * symbol = g_function_info_get_symbol(info);
   GModule *m = g_module_open(shlib, G_MODULE_BIND_LAZY);
   g_module_symbol(m, symbol, &nativeAddress);
-  g_module_close(m);
 
   return nativeAddress;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]