mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15663) -Fix: growing of vsize as (some) threads weren't properly released.
This commit is contained in:
parent
0564d52d99
commit
d6f2a65323
|
@ -68,7 +68,10 @@ private:
|
||||||
NOT_REACHED();
|
NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self_destruct) delete this;
|
if (self_destruct) {
|
||||||
|
pthread_detach(pthread_self());
|
||||||
|
delete this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue