fix app crash issue
authorChangyong Jeon <fin10.jeon@samsung.com>
Sun, 23 Jun 2013 04:01:04 +0000 (13:01 +0900)
committerChangyong Jeon <fin10.jeon@samsung.com>
Sun, 23 Jun 2013 04:01:04 +0000 (13:01 +0900)
Change-Id: I5d5bbd427d2a35d09c28604cc9fb84f0653315d0

Installer/inc/IstDetailForm.h
Installer/src/IstDetailForm.cpp

index 126e657..b09ff91 100644 (file)
@@ -68,7 +68,7 @@ private:
        Tizen::Base::Collection::ArrayList* __pPrivilegeList;
        Tizen::Graphics::Bitmap* __pExpandCloseIcon;
        Tizen::Graphics::Bitmap* __pExpandOpenIcon;
-       Tizen::Base::Boolean* __pExposedItemList;
+       bool* __pExposedItemList;
        float __fontSize;
        float __childFontSize;
 };
index 0a7473a..d8d561b 100644 (file)
@@ -56,6 +56,7 @@ DetailForm::DetailForm(void)
        : __pPrivilegeList(null)
        , __pExpandCloseIcon(null)
        , __pExpandOpenIcon(null)
+       , __pExposedItemList(null)
        , __fontSize(44.f)
        , __childFontSize(32.f)
 {
@@ -102,6 +103,7 @@ DetailForm::OnTerminating(void)
        delete __pPrivilegeList;
        delete __pExpandCloseIcon;
        delete __pExpandOpenIcon;
+       delete[] __pExposedItemList;
        return E_SUCCESS;
 }
 
@@ -143,7 +145,7 @@ DetailForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
 
                if (__pPrivilegeList->GetCount() > 0)
                {
-                       __pExposedItemList = new (std::nothrow) Boolean(__pPrivilegeList->GetCount());
+                       __pExposedItemList = new (std::nothrow) bool[__pPrivilegeList->GetCount()];
                        for (int i=0; i<__pPrivilegeList->GetCount(); ++i)
                        {
                                __pExposedItemList[i] = false;