From: junho13.lee Date: Fri, 9 Jan 2015 01:34:11 +0000 (+0900) Subject: [PPM] fix Plugin Manager Destructor segment fault. X-Git-Tag: 1.2.0+RC1~1997 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6622fca961729a7bccc23ce54759b35b55c5fca9;p=platform%2Fupstream%2Fiotivity.git [PPM] fix Plugin Manager Destructor segment fault. 1. Modify PluginManager Destructor. 2. Remove "free(handle)" and add "dlclose(handle)". Change-Id: Ib2fc492631914664eac76d0db0d78126e1cefd95 Signed-off-by: junho13.lee --- diff --git a/service/protocol-plugin/plugin-manager/src/PluginManager.cpp b/service/protocol-plugin/plugin-manager/src/PluginManager.cpp index 7e0f0ed..0f4034f 100644 --- a/service/protocol-plugin/plugin-manager/src/PluginManager.cpp +++ b/service/protocol-plugin/plugin-manager/src/PluginManager.cpp @@ -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)