浏览代码

fixed double cancel will break linked list, also fix memleak of stopped timers, close #10656

Nicolas Cannasse 3 年之前
父节点
当前提交
91953dab57
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      std/sys/thread/EventLoop.hx

+ 1 - 0
std/sys/thread/EventLoop.hx

@@ -93,6 +93,7 @@ class EventLoop {
 			case null:
 			case e: e.next = event.next;
 		}
+		event.next = event.previous = null;
 		mutex.release();
 	}