SDL_Rect **mode;
mode = SDL_ListModes(&pf, SDL_FULLSCREEN | SDL_HWSURFACE));
Now how can I release memory bound by “mode”?
(without SDL_Quit)
Now how can I release memory bound by “mode”?
(without SDL_Quit)
It’s not obvious in the docs, but after browsing the source, I’d say
the answer is “You don’t.” What you get is a pointer into an internal
array of rects, managed by SDL.
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -’
— http://olofson.net — http://www.reologica.se —On Friday 10 January 2003 22.59, wrote:
SDL_Rect **mode;
mode = SDL_ListModes(&pf, SDL_FULLSCREEN | SDL_HWSURFACE));Now how can I release memory bound by “mode”?