servo: Fixed some compile errors in servo

Source-Repo: https://github.com/servo/servo
Source-Revision: 56c1cc5407081d93309adc65687dca7abe09690b
This commit is contained in:
Margaret Meyerhofer 2012-06-27 11:40:05 -07:00
parent 030339717a
commit 25dc44b25c
2 changed files with 8 additions and 2 deletions

View File

@ -63,8 +63,12 @@ type ScopeData<T:send,A> = {
mut first_dirty: Handle<T,A>
};
resource ScopeResource<T:send,A>(d: ScopeData<T,A>) {
unsafe {
class ScopeResource<T:send,A> {
let d : ScopeData<T,A>;
new(d : ScopeData<T,A>) {
self.d = d;
}
drop unsafe {
for d.free_list.each { |h| free_handle(h); }
}
}

View File

@ -7,6 +7,8 @@
#[license = "MPL"];
#[crate_type = "lib"];
#[warn(no_oldvecs)];
use std;
use sdl;
use azure;