Update change log and spec for wrt-plugins-tizen_0.4.51
[framework/web/wrt-plugins-tizen.git] / src / Systeminfo / Systeminfo.cpp
index f9f4f2d..5306a37 100755 (executable)
@@ -634,8 +634,6 @@ void Systeminfo::OnRequestReceived(const EventGetSysteminfoPtr& event)
             }
             LoggerD("simState : " << simState);
             event->setSimState(simState);
-            if (simState)
-                free(simState);
             if(strcmp(simState, "READY") == 0) {
                 if (tel_get_sim_imsi(m_tapiHandle, &imsi) == TAPI_API_SUCCESS) {
                     LoggerD("mcc : " << imsi.szMcc << \r" mnc : " << imsi.szMnc << " msin : " << imsi.szMsin);
@@ -655,6 +653,8 @@ void Systeminfo::OnRequestReceived(const EventGetSysteminfoPtr& event)
                 event->makeSimObject();
                 EventRequestReceiver<EventGetSysteminfo>::ManualAnswer(event);
             }
+            if (simState)
+                free(simState);
         } else {
             LoggerE("get fail sim state");
             event->makeSimObject();
@@ -1283,8 +1283,8 @@ PROPERTY_GET_SYSTEMINFO_DEFINITION(Storage) {
             storagePtr->units[1].type = "MMC";
             storagePtr->units[1].capacity = (unsigned long long)fs.f_bsize * (unsigned long long)fs.f_blocks;
             storagePtr->units[1].availableCapacity = (unsigned long long)fs.f_bsize * (unsigned long long)fs.f_bavail;
-            storagePtr->units[1].isRemoveable = false;
-            storagePtr->units[1].isRemovable = false;
+            storagePtr->units[1].isRemoveable = true;
+            storagePtr->units[1].isRemovable = true;
             storagePtr->cnt = 2;
             LoggerD("type : " << storagePtr->units[1].type);            
         }