Sfoglia il codice sorgente

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

Nicolas Cannasse 3 anni fa
parent
commit
91953dab57
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      std/sys/thread/EventLoop.hx

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

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