free the surface before checking for errors
free the surface before checking for errors

Twinklebear/TwinklebearDev-Lessons,AMDmi3/TwinklebearDev-Lessons,AMDmi3/TwinklebearDev-Lessons-libSDL2pp,libSDL2pp/TwinklebearDev-Lessons-libSDL2pp