forked from github/server
Bugfix beim Löschen von Feuerwänden.
This commit is contained in:
parent
4fd417981b
commit
94ade452b7
|
@ -225,11 +225,11 @@ age_borders(void)
|
|||
}
|
||||
}
|
||||
while (deleted) {
|
||||
border_list * blist = deleted;
|
||||
border * b = blist->data;
|
||||
border_list * blist = deleted->next;
|
||||
border * b = deleted->data;
|
||||
erase_border(b);
|
||||
deleted = blist->next;
|
||||
free(deleted);
|
||||
deleted = blist;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -175,6 +175,7 @@ a_removeall(attrib **p, const attrib_type * at)
|
|||
attrib *
|
||||
a_new(const attrib_type * at) {
|
||||
attrib * a = calloc(1, sizeof(attrib));
|
||||
assert(at!=NULL);
|
||||
a->type = at;
|
||||
if (at->initialize) at->initialize(a);
|
||||
return a;
|
||||
|
|
Loading…
Reference in New Issue