Fix double free issue 61/116361/4
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 24 Feb 2017 03:38:11 +0000 (12:38 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 24 Feb 2017 08:39:00 +0000 (17:39 +0900)
commita9d23c4a35fee6276bebffa77d7eba3aa53f02a2
treedfde8ee2f910ed872e86ade0d681566ec5f3c088
parentac1529bc879f49dbd330fdeac4f84229cfeea989
Fix double free issue

When destroying the hash table, the application has crashed by the
language list. Some nodes of the list are released when the language
is found in the __append_langs function. If the node is released,
we should replace the value of the hash table.

Change-Id: I926d52850b2ac596d777bbc05ed2f947855f9041
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/appcore-i18n.c
src/base/appcore_base.c