chickadee » sdl2 » rw-close!

rw-close! rwopsprocedure

See SDL_RWclose.

Close and clean up the given sdl2:rwops. This frees the memory used by the SDL_RWops struct itself, but does not free or release the pointer, blob, or string that the sdl2:rwops was reading/writing from. (It does close files opened with rw-from-file, though.)

Signals an exception of kind (exn sdl2) if an error occurs.