Fix prevent
authorHeeJu Kang <mobum.kang@samsung.com>
Tue, 14 May 2013 01:56:10 +0000 (10:56 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Tue, 14 May 2013 01:56:10 +0000 (10:56 +0900)
Change-Id: I57cc9083b8525bbba3b249c0266f4b9e1bc3c73d
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/FShell_AppWidgetViewManager.cpp

index c645577..2a83f0d 100644 (file)
@@ -229,14 +229,14 @@ pixmap_update(Display* pDisplay, tbm_bufmgr bufmgr, Pixmap pixmap, int x, int y,
        int opt = TBM_OPTION_READ|TBM_OPTION_WRITE;
        char imgFile[100] = {0,};
 
-       DRI2Buffer* pDri2_buffers = DRI2GetBuffers (pDisplay, pixmap, &dri2_width, &dri2_height, attachments, dri2_count, &dri2_out_count);
-       SysTryReturnVoidResult(NID_SHELL, pDri2_buffers != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
-       SysTryReturnVoidResult(NID_SHELL, pDri2_buffers->name != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
-
        tbm_bo bo = null;
        tbm_bo_handle bo_handle;
        bo_handle.ptr = null;
 
+       DRI2Buffer* pDri2_buffers = DRI2GetBuffers (pDisplay, pixmap, &dri2_width, &dri2_height, attachments, dri2_count, &dri2_out_count);
+       SysTryReturnVoidResult(NID_SHELL, pDri2_buffers != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+       SysTryLogCatch(NID_UI_CTRL, pDri2_buffers->name != null, , "[E_OUT_OF_MEMORY] Memory is insufficient.");
+
        bo = tbm_bo_import(bufmgr, pDri2_buffers->name);
        SysTryLogCatch(NID_UI_CTRL, bo != null, , "Failed to import bo (key : %d).", pDri2_buffers->name);