Skip to content
Permalink
Browse files

panel-toplevel: fix memory leak in calculate_minimum_height

  • Loading branch information...
rcaridade145 authored and lukefromdc committed Sep 10, 2018
1 parent 4e8bddd commit de3e05bcf31bd6397e62cf36d1319ff21caf3797
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 ?

0 comments on commit de3e05b

Please sign in to comment.
You can’t perform that action at this time.