forked from enlightenment/efl
evas_device: Fix typo in evas_device_pop
Summary: Fix wrong null check Test Plan: N/A Reviewers: cedric, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10648
This commit is contained in:
parent
7d97abc05b
commit
04e3d8cc3d
|
@ -289,7 +289,7 @@ evas_device_pop(Evas *eo_e)
|
||||||
Evas_Device *dev;
|
Evas_Device *dev;
|
||||||
|
|
||||||
Evas_Public_Data *e = efl_data_scope_safe_get(eo_e, EVAS_CANVAS_CLASS);
|
Evas_Public_Data *e = efl_data_scope_safe_get(eo_e, EVAS_CANVAS_CLASS);
|
||||||
if (e) return ;
|
if (!e) return ;
|
||||||
dev = eina_array_pop(e->cur_device);
|
dev = eina_array_pop(e->cur_device);
|
||||||
if (dev) efl_unref(dev);
|
if (dev) efl_unref(dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue