Merge pull request #2306 from apple/revert-2300-fix-memory-leak
Revert "Clean up some memory after network thread exits"
This commit is contained in:
commit
67dbac720f
|
@ -90,7 +90,6 @@ namespace std {
|
|||
|
||||
class IRandom {
|
||||
public:
|
||||
virtual ~IRandom() = default;
|
||||
virtual double random01() = 0; // return random value in [0, 1]
|
||||
virtual int randomInt(int min, int maxPlusOne) = 0;
|
||||
virtual int64_t randomInt64(int64_t min, int64_t maxPlusOne) = 0;
|
||||
|
|
|
@ -732,10 +732,6 @@ void Net2::run() {
|
|||
#ifdef WIN32
|
||||
timeEndPeriod(1);
|
||||
#endif
|
||||
|
||||
// clean up memory
|
||||
delete this;
|
||||
thread_network = nullptr;
|
||||
}
|
||||
|
||||
void Net2::trackMinPriority( TaskPriority minTaskID, double now ) {
|
||||
|
|
Loading…
Reference in New Issue