Fixed some compile errors in servo

This commit is contained in:
Margaret Meyerhofer 2012-06-27 11:40:05 -07:00
parent 98bfb44d8f
commit 56c1cc5407
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;