To fix coverity issue - color controller 19/209819/1
authorSeungho, Baek <sbsh.baek@samsung.com>
Mon, 8 Jul 2019 08:28:33 +0000 (17:28 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 8 Jul 2019 08:28:33 +0000 (17:28 +0900)
Change-Id: Id4c97209f60d1f4d6888f3fbf9f0c1bebb3504f9
Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
dali/internal/system/common/color-controller-impl.cpp

index c0e8874..b8cf94d 100644 (file)
@@ -74,6 +74,16 @@ ColorController::ColorController()
 
 ColorController::~ColorController()
 {
+  if( mPlugin )
+  {
+    delete mPlugin;
+    mPlugin = NULL;
+
+    if( mLibHandle && dlclose( mLibHandle ) )
+    {
+      DALI_LOG_ERROR( "Error closing color controller plugin library: %s\n", dlerror() );
+    }
+  }
 }
 
 void ColorController::Initialize()