use SDL_FreeSurface instead of free
This commit is contained in:
parent
e2f67bbd2a
commit
6493a7147f
1 changed files with 2 additions and 2 deletions
|
|
@ -14157,9 +14157,9 @@ static void loadfonts(const char * const dir, int fatal)
|
||||||
printf("could not render %s, %s, %s\n", d_names[i], family, style);
|
printf("could not render %s, %s, %s\n", d_names[i], family, style);
|
||||||
}
|
}
|
||||||
if(tmp_surf_a)
|
if(tmp_surf_a)
|
||||||
free(tmp_surf_a);
|
SDL_FreeSurface(tmp_surf_a);
|
||||||
if(tmp_surf_A)
|
if(tmp_surf_A)
|
||||||
free(tmp_surf_A);
|
SDL_FreeSurface(tmp_surf_A);
|
||||||
}
|
}
|
||||||
TTF_CloseFont(font);
|
TTF_CloseFont(font);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue