Update change log and spec for wrt-plugins-tizen_0.4.46
[platform/framework/web/wrt-plugins-tizen.git] / src / SystemSetting / SystemSetting.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 774f75c..72abe42
@@ -259,6 +259,8 @@ void SystemSetting::OnRequestReceived(const EventGetSettingPtr &event)
        {
                LoggerD("success");
                event->setExceptionCode(ExceptionCodes::None);
+               settingValue = value;
+               event->setSettingValue(settingValue);
        }
        else
        {
@@ -266,12 +268,11 @@ void SystemSetting::OnRequestReceived(const EventGetSettingPtr &event)
                event->setExceptionCode(ExceptionCodes::PlatformException);
        }
 
-       settingValue = value;
-       event->setSettingValue(settingValue);
-
+       if (value) {
+               free(value);
+       }
        LoggerD("end");
 }
 
-
 }
 }