projects
/
platform
/
core
/
uifw
/
ise-engine-tables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b4c80
)
Fix memory free logic
55/139855/1
accepted/tizen_3.0_common
accepted/tizen_3.0_ivi
accepted/tizen_3.0_mobile
accepted/tizen_3.0_tv
tizen_3.0
accepted/tizen/3.0/common/20170724.045518
accepted/tizen/3.0/ivi/20170724.032122
accepted/tizen/3.0/mobile/20170724.032112
accepted/tizen/3.0/tv/20170724.032059
submit/tizen_3.0/20170720.044545
submit/tizen_3.0/20170720.232748
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Fri, 21 Jul 2017 00:53:53 +0000
(09:53 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Fri, 21 Jul 2017 00:57:07 +0000
(
00:57
+0000)
The memory was allocated using 'new T[]' operator but was released using the 'delete' operator.
Change-Id: I5974c85cc0c129e7b5c222527ade456a382b0d80
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/scim_generic_table.cpp
patch
|
blob
|
history
diff --git
a/src/scim_generic_table.cpp
b/src/scim_generic_table.cpp
index cf3c131da3cb71d495bcbfdd20ef25c901a94101..33ab03377ed13169db9ccb409e93e1616f26a39f 100755
(executable)
--- a/
src/scim_generic_table.cpp
+++ b/
src/scim_generic_table.cpp
@@
-995,7
+995,7
@@
GenericTableContent::set_max_key_length (size_t max_key_length)
offsets_attrs = new(std::nothrow) std::vector <OffsetGroupAttr> [max_key_length];
if (!offsets_attrs) {
- delete offsets;
+ delete
[]
offsets;
return;
}