Commit a2b1fb44 authored by Tomáš Bžatek's avatar Tomáš Bžatek

tasklist: Fix leaking PangoFontDescription

parent e55666b1
Pipeline #200121 passed with stage
in 3 minutes and 20 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment