fix CID 1100640 - read from pointer after free

This commit is contained in:
Boris Faure 2013-10-14 23:25:55 +02:00
parent c4366ed2b5
commit 46839daa9a
1 changed files with 2 additions and 1 deletions

View File

@ -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
{