summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/canvas/evas_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_device.c b/src/lib/evas/canvas/evas_device.c
index 1652e79..1121325 100644
--- a/src/lib/evas/canvas/evas_device.c
+++ b/src/lib/evas/canvas/evas_device.c
@@ -289,7 +289,7 @@ evas_device_pop(Evas *eo_e)
289 Evas_Device *dev; 289 Evas_Device *dev;
290 290
291 Evas_Public_Data *e = efl_data_scope_safe_get(eo_e, EVAS_CANVAS_CLASS); 291 Evas_Public_Data *e = efl_data_scope_safe_get(eo_e, EVAS_CANVAS_CLASS);
292 if (e) return ; 292 if (!e) return ;
293 dev = eina_array_pop(e->cur_device); 293 dev = eina_array_pop(e->cur_device);
294 if (dev) efl_unref(dev); 294 if (dev) efl_unref(dev);
295} 295}