Wed Sep 14 18:52:24 EDT 1999

(Christian)

I hope this fixes the segfault that Technoir reported.


SVN revision: 272
This commit is contained in:
Christian Kreibich 1999-09-14 22:37:11 +00:00
parent 300f4850bd
commit b45fb44962
2 changed files with 11 additions and 1 deletions

View File

@ -1757,3 +1757,11 @@ Ooops, the middle button in the titlebar did raise/lower and show/hide
group borders at the same time. Changed show/hide group borders
to shift-middleclick.
-------------------------------------------------------------------------------
Wed Sep 14 18:52:24 EDT 1999
(Christian)
I hope this fixes the segfault that Technoir reported.

View File

@ -174,12 +174,14 @@ RemoveEwinFromGroup(EWin * ewin, Group * g)
for (i2 = k; i2 < ewin->num_groups - 1; i2++)
ewin->groups[i2] = ewin->groups[i2 + 1];
ewin->num_groups--;
ewin->groups = Erealloc(ewin->groups, sizeof(Group *) * ewin->num_groups);
if (ewin->num_groups <= 0)
{
Efree(ewin->groups);
ewin->groups = NULL;
ewin->num_groups = 0;
}
else
ewin->groups = Erealloc(ewin->groups, sizeof(Group *) * ewin->num_groups);
SaveGroups();
RememberImportantInfoForEwin(ewin);
return;