Commit 7f5222d4 authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

ENH: Fix dashboard with coverage

parent 7b36bf6c
......@@ -167,7 +167,13 @@ LibHandle DynamicLoader::OpenLibrary(const char* libname )
int DynamicLoader::CloseLibrary( LibHandle lib)
bool success = NSUnLinkModule(lib, NSUNLINKMODULE_OPTION_NONE);
// Initially this function was written using NSUNLINKMODULE_OPTION_NONE, but when
// the code is compiled with coverage on, one cannot close the library properly
// so instead of not unloading the library. We use a special option:
// With this option the memory for the module is not deallocated
// allowing pointers into the module to still be valid.
return success;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment