From 64c431bb9b26ae6d991df454d4b74ce963afe5ae Mon Sep 17 00:00:00 2001 From: "Seungho, Baek" Date: Mon, 8 Jul 2019 17:28:33 +0900 Subject: [PATCH 1/1] To fix coverity issue - color controller Change-Id: Id4c97209f60d1f4d6888f3fbf9f0c1bebb3504f9 Signed-off-by: Seungho, Baek --- dali/internal/system/common/color-controller-impl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dali/internal/system/common/color-controller-impl.cpp b/dali/internal/system/common/color-controller-impl.cpp index c0e8874..b8cf94d 100644 --- a/dali/internal/system/common/color-controller-impl.cpp +++ b/dali/internal/system/common/color-controller-impl.cpp @@ -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() -- 2.7.4