Cleanup
This commit is contained in:
parent
e95b39d534
commit
49573e0aa2
|
@ -71,11 +71,7 @@ template <typename T> struct Pool {
|
||||||
return pool.get();
|
return pool.get();
|
||||||
}
|
}
|
||||||
void recycle(T *m) {
|
void recycle(T *m) {
|
||||||
if (freelist) {
|
|
||||||
m->next = freelist;
|
m->next = freelist;
|
||||||
} else {
|
|
||||||
m->next = nullptr;
|
|
||||||
}
|
|
||||||
freelist = m;
|
freelist = m;
|
||||||
}
|
}
|
||||||
void clear() {
|
void clear() {
|
||||||
|
|
Loading…
Reference in New Issue