Can i free my SDL_Surface* surf by doing this:
SDL_Surface* surf;
for(int i = 0; i < 5; i++){
surf = TTF_RenderText_Blended(foofont, foostring, foocolor);
}
SDL_FreeSurface(surf);
surf = NULL;
Or does this cause memory leaks?