fix memory leak in text rendering
This commit is contained in:
parent
0dfc8cdf02
commit
80576bdab8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue