uses SDL;
procedure SDL_FreeSurface( surface : PSDL_Surface );
Frees the resources used by a previously created SDL_Surface. If the surface was created using SDL_CreateRGBSurfaceFrom then the pixel data is not freed.
SDL_CreateRGBSurface SDL_CreateRGBSurfaceFrom