diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2020-07-29 17:28:33 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2020-07-29 17:28:33 +0200 |
commit | a2b1fb441d1cb002839b8817ade41f40abdb32e8 (patch) | |
tree | 366e071528e6cca70d0f13b3ca55b1e839d486e6 /libwnck | |
parent | e55666b1b28d1dbeff848cc36f831acefb93ab44 (diff) | |
download | libwnck-a2b1fb441d1cb002839b8817ade41f40abdb32e8.tar.gz |
tasklist: Fix leaking PangoFontDescription
Diffstat (limited to 'libwnck')
-rw-r--r-- | libwnck/tasklist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c index 2b20424..955af01 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 |