billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=46839daa9a12601c980c888b4242324035133dea

commit 46839daa9a12601c980c888b4242324035133dea
Author: Boris Faure <bill...@gmail.com>
Date:   Mon Oct 14 23:25:55 2013 +0200

    fix CID 1100640 - read from pointer after free
---
 src/bin/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 41a1b2f..2ab785c 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -629,6 +629,7 @@ main_close(Evas_Object *win, Evas_Object *term)
         if (!sp->term)
           {
              _split_free(sp);
+             sp = NULL;
              if ((spp->parent) && (spp->parent->s2 == spp))
                slot = PANES_BOTTOM;
              _split_merge(spp, spkeep, slot);
@@ -650,7 +651,7 @@ main_close(Evas_Object *win, Evas_Object *term)
              _term_focus(sp->term);
              _term_focus_show(sp, sp->term);
           }
-        _split_tabcount_update(sp, sp->term);
+        if (sp) _split_tabcount_update(sp, sp->term);
      }
    else
      {

-- 


Reply via email to