[libwnck] tasklist: Fix leaking PangoFontDescription
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] tasklist: Fix leaking PangoFontDescription
- Date: Wed, 29 Jul 2020 19:33:21 +0000 (UTC)
commit a2b1fb441d1cb002839b8817ade41f40abdb32e8
Author: Tomas Bzatek <tbzatek redhat com>
Date: Wed Jul 29 17:28:33 2020 +0200
tasklist: Fix leaking PangoFontDescription
libwnck/tasklist.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 2b20424e..955af013 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -1208,6 +1208,7 @@ wnck_tasklist_get_button_size (GtkWidget *widget)
pango_context_get_language (context));
char_width = pango_font_metrics_get_approximate_char_width (metrics);
pango_font_metrics_unref (metrics);
+ pango_font_description_free (description);
text_width = PANGO_PIXELS (TASKLIST_TEXT_MAX_WIDTH * char_width);
width = text_width + 2 * TASKLIST_BUTTON_PADDING
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]