forked from enlightenment/efl
Evas textblock: add null check in evas_textblock_cursor_free
This commit is contained in:
parent
824df3d37b
commit
078f83f4bc
|
@ -8404,6 +8404,7 @@ evas_object_textblock_cursor_new(Eo *eo_obj)
|
||||||
EAPI void
|
EAPI void
|
||||||
evas_textblock_cursor_free(Evas_Textblock_Cursor *cur)
|
evas_textblock_cursor_free(Evas_Textblock_Cursor *cur)
|
||||||
{
|
{
|
||||||
|
if (!cur) return;
|
||||||
Efl_Canvas_Text_Data *o = efl_data_scope_get(cur->obj, MY_CLASS);
|
Efl_Canvas_Text_Data *o = efl_data_scope_get(cur->obj, MY_CLASS);
|
||||||
if (cur == o->cursor) return;
|
if (cur == o->cursor) return;
|
||||||
o->cursors = eina_list_remove(o->cursors, cur);
|
o->cursors = eina_list_remove(o->cursors, cur);
|
||||||
|
|
Loading…
Reference in New Issue