[SDL] TTF_Font ( ¿forward declaration?)
Alvin
alvinbeach at gmail.com
Tue Jun 19 08:35:12 PDT 2007
On Tuesday 19 June 2007 12:26:09 Zaka E-Lab wrote:
> Sorry!!!
>
> I wanted to put that
>
>
> TTF_Font *fuente = NULL;
> ...........
> SDL_Surface *superficie;
> ............
> superficie = TTF_RenderText_Blended(.........);
> ...........
> delete fuente;
Do not use delete. Instead, use SDL_FreeSurface() as in:
SDL_FreeSurface(superficie);
Also, I assume you use TTF_OpenFont() [or variant] to create fuente. If so, do
not use delete on fuente, use TTF_CloseFont() as in:
TTF_CloseFont(fuente);
Alvin
More information about the SDL
mailing list