yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=de4517aebad0486c3e321ecdde3160d27ed48b38

commit de4517aebad0486c3e321ecdde3160d27ed48b38
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Mon Jun 29 17:33:58 2015 +0300

    Fix segfault
---
 src/bin/gui/editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index b959fbb..dce3086 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -4860,6 +4860,7 @@ _canvas_resize_cb(void *data EINA_UNUSED, Eo *obj, const 
Eo_Event_Description *d
    Evas_Coord right_x, bottom_y, left_x, top_y;
    _max_coords_get(&left_x, &top_y, &right_x, &bottom_y);
    Gui_Context *ctx = _active_context_get();
+   if (!ctx) return EO_CALLBACK_CONTINUE;
    if (g)
      {
         Evas_Coord dx = 17, dy = 2, w, h;
@@ -4882,7 +4883,6 @@ _canvas_resize_cb(void *data EINA_UNUSED, Eo *obj, const 
Eo_Event_Description *d
              Evas_Coord region_x, region_y, region_w, region_h;
              elm_scroller_region_get(obj, &region_x, &region_y, &region_w, 
&region_h);
              Eid *wdg_id;
-             if (!ctx) return EO_CALLBACK_CONTINUE;
              Eina_List *main_widgets = gui_context_main_widgets_get(ctx), *itr;
              EINA_LIST_FOREACH(main_widgets, itr, wdg_id)
                {

-- 


Reply via email to