소스 검색

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();
 	}