After calling destructor of an object, render_pre function can be called for that object.
In this case, we need to handle pointer carefully.
@tizen_fix
Change-Id: I6ab50e88402892568b53a25622be621328c67823
static void
_cursor_emit_if_changed(Efl_Text_Cursor_Cursor *cur)
{
+ /* TIZEN_ONLY(20180425): prevent invalid read from a free'd cursor */
+ if (!cur) return;
+ /* END */
+
if (cur->changed)
{
cur->changed = EINA_FALSE;
evas_object_textblock_style_user_pop(eo_obj);
}
free(o->cursor);
+ /* TIZEN_ONLY(20180425): prevent invalid read from a free'd cursor */
+ o->cursor = NULL;
+ /* END */
while (o->cursors)
{
Efl_Text_Cursor_Cursor *cur;