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:
A.J. Beamon 2019-11-01 11:48:29 -07:00 committed by GitHub
commit 67dbac720f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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 ) {