[SDL] Memory release problem

David Olofson david at olofson.net
Fri Jan 10 15:37:01 PST 2003


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"?

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 ---




More information about the SDL mailing list