Tao.Sdl SDK Documentation

Sdl.SDL_FreeRW Method 

Frees an SDL_RWops structure allocated by SDL_AllocRW.

[Visual Basic]
Public Shared Sub SDL_FreeRW( _
   ByVal context As IntPtr _
)
[C#]
public static void SDL_FreeRW(
   IntPtr context
);

Parameters

context

Remarks

SDL_FreeRW frees an SDL_RWops structure previously allocated by SDL_AllocRW. Only use it 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.

Example

            #include "SDL_rwops.h"
            void dumb_example()
            {
            SDL_RWops *rw=SDL_AllocRW();
            if(rw==NULL) return;
            SDL_FreeRW(rw);
            }
            

See Also

Sdl Class | Tao.Sdl Namespace | SDL_AllocRW