diff options
-rw-r--r-- | mate-panel/panel-toplevel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index d9456f22..0b338d07 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -2317,7 +2317,7 @@ calculate_minimum_height (GtkWidget *widget, { GtkStateFlags state; GtkStyleContext *style_context; - const PangoFontDescription *font_desc; + PangoFontDescription *font_desc; GtkBorder padding; PangoContext *pango_context; PangoFontMetrics *metrics; @@ -2338,6 +2338,7 @@ calculate_minimum_height (GtkWidget *widget, ascent = pango_font_metrics_get_ascent (metrics); descent = pango_font_metrics_get_descent (metrics); + pango_font_description_free (font_desc); pango_font_metrics_unref (metrics); thickness = orientation & PANEL_HORIZONTAL_MASK ? |