[PPM] fix Plugin Manager Destructor segment fault.
authorjunho13.lee <junho13.lee@samsung.com>
Fri, 9 Jan 2015 01:34:11 +0000 (10:34 +0900)
committerjunho13.lee <junho13.lee@samsung.com>
Fri, 9 Jan 2015 01:34:11 +0000 (10:34 +0900)
1. Modify PluginManager Destructor.
2. Remove "free(handle)" and add "dlclose(handle)".

Change-Id: Ib2fc492631914664eac76d0db0d78126e1cefd95
Signed-off-by: junho13.lee <junho13.lee@samsung.com>
service/protocol-plugin/plugin-manager/src/PluginManager.cpp

index 7e0f0ed..0f4034f 100644 (file)
@@ -44,7 +44,7 @@ PluginManager::PluginManager()
 PluginManager::~PluginManager(void)
 {
     destroy(pluginManagerImpl);
-    free(handle);
+    dlclose(handle);
 }
 
 int PluginManager::startPlugins(const std::string key, const std::string value)