mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Work around compiler bug causing crashes in image cache
This commit is contained in:
parent
726bae7fb4
commit
68af9bf6b9
1 changed files with 2 additions and 1 deletions
|
@ -377,7 +377,8 @@ impl ImageCache {
|
||||||
|
|
||||||
priv fn purge_waiters(url: Url, f: fn() -> ImageResponseMsg) {
|
priv fn purge_waiters(url: Url, f: fn() -> ImageResponseMsg) {
|
||||||
match self.wait_map.find(copy url) {
|
match self.wait_map.find(copy url) {
|
||||||
Some(@ref mut waiters) => {
|
Some(waiters) => {
|
||||||
|
let waiters = &mut *waiters;
|
||||||
let mut new_waiters = ~[];
|
let mut new_waiters = ~[];
|
||||||
new_waiters <-> *waiters;
|
new_waiters <-> *waiters;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue