ecore_imf: fix issue magic check does not work after deletion 38/91838/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 11 Oct 2016 23:31:49 +0000 (08:31 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 12 Oct 2016 02:23:59 +0000 (19:23 -0700)
commit886d157263e305065c83752b227b1eddb55c0381
treea7f079234a24bda9a991a02a964c7eab76d368ac
parent274e7e1a3a14a9d64a446f30b9e0a25b2d2a8902
ecore_imf: fix issue magic check does not work after deletion

gcc O2 optimization makes to skip ECORE_MAGIC_SET(ctx, ECORE_MAGIC_NONE) before free()
in ecore_imf_context_del().
It's essential for magic check, so no optimization attribute is used to prevent for skipping.

Change-Id: I15dc96c12adb6b2f7f55063d2d0068c619fd0c42
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/lib/ecore_imf/ecore_imf_context.c