fix memory leak in text rendering

This commit is contained in:
Andrea Blankenstijn 2021-07-27 22:15:43 +02:00
parent 0dfc8cdf02
commit 80576bdab8

View file

@ -138,4 +138,5 @@ void widget::Caption::_handle_texture_update()
break; break;
} }
_text_texture = new core::Texture(_renderer, s); _text_texture = new core::Texture(_renderer, s);
SDL_FreeSurface(s);
} }