elc_naviframe: fix double free by _title_content_del in item invalidation 95/247595/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 12 Nov 2020 07:22:05 +0000 (16:22 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 12 Nov 2020 10:45:35 +0000 (19:45 +0900)
commit3b43939d723ac58b5fdfa9f972e468fb64be22bf
treea91ff910061f64c3d142f3578023530238792413
parent0c21f73808fd6af6630e15a3b6868c27c502d3e6
elc_naviframe: fix double free by _title_content_del in item invalidation

If a box contains a button and box is set to part A and button is set to
part B, then button's _title_content_del is called when box is deleted
in item invalidation and button's pair is deleted again.

To resolve the above double free, item invalidation flag is used not to
call _title_content_del during item invalidation.

Change-Id: I3795e63470259203c3d8ae66613981bb6f8240c0
src/lib/elementary/elc_naviframe.c
src/lib/elementary/elm_widget_naviframe.h