about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-20 18:51:55 -0700
committerbors <bors@rust-lang.org>2013-08-20 18:51:55 -0700
commitd56b9b102b307b473487402b0e494975206237b6 (patch)
tree85e3a24ee890729a3f7194bc39575343b6edc89b /src/rt/sync/timer.cpp
parent0bc1ca404539102065ee0757944ce2288db4cb32 (diff)
parent352ac2efdf825864335cd31e56fdda7352bb6a1a (diff)
downloadrust-d56b9b102b307b473487402b0e494975206237b6.tar.gz
rust-d56b9b102b307b473487402b0e494975206237b6.zip
auto merge of #8656 : toddaaro/rust/idle-opt+cleaning, r=brson
Fixed a memory leak caused by the singleton idle callback failing to close correctly. The problem was that the close function requires running inside a callback in the event loop, but we were trying to close the idle watcher after the loop returned from run. The fix was to just call run again to process this callback. There is an additional tweak to move the initialization logic fully into bootstrap, so tasks that do not ever call run do not have problems destructing.
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions