fixed seg fault caused by freeing unallocated sdl texture and ttf font