summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-10-14 23:25:55 +0200
committerBoris Faure <billiob@gmail.com>2013-10-14 23:25:55 +0200
commit46839daa9a12601c980c888b4242324035133dea (patch)
tree3f3c2e87bede63802d42e81d13c74fdc5c133cf8
parentc4366ed2b57c685cb9130ff7c5b4105692cfa207 (diff)
fix CID 1100640 - read from pointer after free
-rw-r--r--src/bin/main.c3
1 files changed, 2 insertions, 1 deletions
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)
629 if (!sp->term) 629 if (!sp->term)
630 { 630 {
631 _split_free(sp); 631 _split_free(sp);
632 sp = NULL;
632 if ((spp->parent) && (spp->parent->s2 == spp)) 633 if ((spp->parent) && (spp->parent->s2 == spp))
633 slot = PANES_BOTTOM; 634 slot = PANES_BOTTOM;
634 _split_merge(spp, spkeep, slot); 635 _split_merge(spp, spkeep, slot);
@@ -650,7 +651,7 @@ main_close(Evas_Object *win, Evas_Object *term)
650 _term_focus(sp->term); 651 _term_focus(sp->term);
651 _term_focus_show(sp, sp->term); 652 _term_focus_show(sp, sp->term);
652 } 653 }
653 _split_tabcount_update(sp, sp->term); 654 if (sp) _split_tabcount_update(sp, sp->term);
654 } 655 }
655 else 656 else
656 { 657 {