Fix issue detected by static analysis tool 99/272499/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.063409 accepted/tizen/7.0/unified/hotfix/20221116.110108 accepted/tizen/8.0/unified/20231005.094145 accepted/tizen/unified/20220318.132742 submit/tizen/20220318.024102 tizen_7.0_m2_release tizen_8.0_m2_release
authorInHong Han <inhong1.han@samsung.com>
Fri, 18 Mar 2022 02:05:23 +0000 (11:05 +0900)
committerInHong Han <inhong1.han@samsung.com>
Fri, 18 Mar 2022 02:05:23 +0000 (11:05 +0900)
Change-Id: Ic2fabf9a2731fd978ac14b75d1438f0539346b17

src/scim_thai_imengine.cpp

index 2375e38762cce09dd8d34d5362ad0745ac854964..5c753e592d18f34961163c24541b62f6f0edac0b 100644 (file)
@@ -101,7 +101,7 @@ ThaiInstance::_get_previous_cell ()
             th_prev_cell (tis_text + begin_index, cursor_index - begin_index,
                           &the_cell, true);
         }
-        delete tis_text;
+        delete[] tis_text;
     }
     else
     {