diff options
Diffstat (limited to 'src/plugins/pluginloader.cpp')
-rw-r--r-- | src/plugins/pluginloader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/pluginloader.cpp b/src/plugins/pluginloader.cpp index adceb6b..337c0ce 100644 --- a/src/plugins/pluginloader.cpp +++ b/src/plugins/pluginloader.cpp @@ -56,13 +56,13 @@ bool CPluginLoader::UnloadPlugin() GetLogger()->Warn("Plugin %s is not loaded.\n"); return true; } - + void (*uninstall)() = (void (*)()) lt_dlsym(mHandle, "UninstallPluginEntry"); if (!uninstall) { GetLogger()->Error("Error getting UninstallPluginEntry for plugin %s: %s\n", mFilename.c_str(), lt_dlerror()); return false; } - + lt_dlclose(mHandle); mLoaded = false; return true; @@ -89,7 +89,7 @@ bool CPluginLoader::LoadPlugin() GetLogger()->Error("Error getting GetPluginInterfaceEntry for plugin %s: %s\n", mFilename.c_str(), lt_dlerror()); return false; } - + install(); mInterface = getInterface(); mLoaded = true; |