discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=64b8da15a41b89eed9b69fbed71da66e9cd110d1

commit 64b8da15a41b89eed9b69fbed71da66e9cd110d1
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Sun Dec 15 13:36:20 2013 -0500

    don't crash when ibar mouse rolling
    
    T666 (wtf)
---
 src/modules/ibar/e_mod_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 95cc406..ece5960 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -1333,7 +1333,7 @@ _ibar_cb_icon_wheel(void *data, Evas *e __UNUSED__, 
Evas_Object *obj __UNUSED__,
    exe = eina_list_data_get(ic->exe_current);
    if (ev->z < 0)
      {
-        if (cur->exe_inst == exe)
+        if (cur && (cur->exe_inst == exe))
           {
              l = eina_list_data_find_list(exe->borders, cur);
              if (l) sel = eina_list_data_get(eina_list_next(l));
@@ -1347,7 +1347,7 @@ _ibar_cb_icon_wheel(void *data, Evas *e __UNUSED__, 
Evas_Object *obj __UNUSED__,
      }
    else if (ev->z > 0)
      {
-        if (cur->exe_inst == exe)
+        if (cur && (cur->exe_inst == exe))
           {
              l = eina_list_data_find_list(exe->borders, cur);
              if (l) sel = eina_list_data_get(eina_list_prev(l));

-- 


Reply via email to