|
Size: 912
Comment: add content from old wiki
|
Size: 920
Comment: update formatting
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| ||'''area'''||^the SDL_RWops structure to be freed^ ???|| | ||'''area'''||^the SDL_RWops structure to be freed^|| |
| Line 34: | Line 34: |
| *Only use [[SDL_FreeRW]]() on memory allocated by [[SDL_AllocRW]](). Any extra memory allocated during creation of the RWops is not freed by [[SDL_FreeRW]](); the programmer must be responsible for it. * | *<<BR>>Only use [[SDL_FreeRW]]() on memory allocated by [[SDL_AllocRW]](). Any extra memory allocated during creation of the RWops is not freed by [[SDL_FreeRW]](); the programmer must be responsible for it. <<BR>>* |
DRAFT |
SDL_FreeRW
Use this function to *free an SDL_RWops structure allocated by SDL_AllocRW(). *
Syntax
void SDL_FreeRW(SDL_RWops* area)
Function Parameters
area |
the SDL_RWops structure to be freed |
Code Examples
*
#include "SDL_rwops.h"
void dumb_example()
{
SDL_RWops *rw=SDL_AllocRW();
if(rw==NULL) return;
SDL_FreeRW(rw);
}
*
Remarks
*
Only use SDL_FreeRW() on memory allocated by SDL_AllocRW(). Any extra memory allocated during creation of the RWops is not freed by SDL_FreeRW(); the programmer must be responsible for it.
*
