brson / rust-sdl

SDL bindings for Rust
MIT License
179 stars 52 forks source link

Surfaces created with SetVideoMode should not be freed #27

Closed z0w0 closed 11 years ago

z0w0 commented 11 years ago

http://www.libsdl.org/docs/html/sdlsetvideomode.html states that it is freed by SDL_Quit and should not be freed manually.

AngryLawyer commented 11 years ago

Ah yes. Thanks for pointing that out. Should be fine now. I've done it through adding a flag to surfaces - if anyone thinks it's a better idea to have different types for the different surfaces, be my guest to have a go.