elementary/index - [E-devel] [PATCH] elm_index : set it->letter to NULL after eina_st...
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 27 Aug 2012 08:23:20 +0000 (08:23 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 27 Aug 2012 08:23:20 +0000 (08:23 +0000)
commit36b939e7b0d8909902e3eb553fa21f7a7b795e65
treeb8ee9a59049144e5b0307ca675912bea82a72fd1
parente085de739550b819feede0a55516bdecb7a8c7d7
elementary/index - [E-devel] [PATCH] elm_index : set it->letter to NULL after eina_stringshare_del

Hello all,

In elm_index.c, _item_del_pre_hook calls _item_free, where it->letter
is not set to NULL after eina_stringshare_del.
This will cause invalid access later on. The attached patch fixes the
problem, which is reproducible in my code before the fix.
Please check if this makes sense.

I am sorry that I was unable come up with a simple test app to
demonstrate the problem.

Thanks in advance.

Brian

Signed-Off-By:Brian Wang<brian.wang.0721@gmail.com>

SVN revision: 75723
src/lib/elm_index.c