fccm / OCamlSDL2

OCaml interface to SDL 2.0 (for Linux, Windows, MacOS, and ChromeBook)
Other
51 stars 10 forks source link

Expose SDL_RWclose #8

Closed scvalex closed 10 years ago

scvalex commented 10 years ago

The changes here expose SDL_RWclose.

The difference between SDL_FreeRW and SDL_RWclose is that the latter also closes the file before freeing the SDL_rwops structure for it. So, presumably, no fd leaks.