From 03b4635beab86db01a826de5c677bbd5aa0ca197 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 19 Apr 2023 14:20:48 +0200 Subject: [PATCH] Fix a small memory leak --- libs/canvas/text.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/canvas/text.cc b/libs/canvas/text.cc index 355c3f116c..7553449900 100644 --- a/libs/canvas/text.cc +++ b/libs/canvas/text.cc @@ -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;