Fix a small memory leak

This commit is contained in:
Robin Gareus
2023-04-19 14:20:48 +02:00
parent 7094c82e75
commit 03b4635bea

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;