Fix a small memory leak

This commit is contained in:
Robin Gareus 2023-04-19 14:20:48 +02:00
parent 7094c82e75
commit 03b4635bea
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -292,6 +292,7 @@ Text::set_font_description (Pango::FontDescription font_description)
{
begin_change ();
delete _font_description;
_font_description = new Pango::FontDescription (font_description);
_need_redraw = true;
_width_correction = -1.0;