release additional reference to recruit order

This commit is contained in:
Enno Rehling 2015-10-14 11:58:54 +02:00
parent f0671aafda
commit 20c9fb60dc

View file

@ -399,6 +399,7 @@ void free_recruitments(recruitment * recruits)
while (rec->requests) { while (rec->requests) {
request *req = rec->requests; request *req = rec->requests;
rec->requests = req->next; rec->requests = req->next;
free_order(req->ord);
free(req); free(req);
} }
free(rec); free(rec);
@ -953,8 +954,9 @@ void economics(region * r)
} }
} }
if (recruitorders) if (recruitorders) {
expandrecruit(r, recruitorders); expandrecruit(r, recruitorders);
}
remove_empty_units_in_region(r); remove_empty_units_in_region(r);
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {