mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Merge branch 'inscription-leak-fixes' into 'main'
inscription: Plug a memory leak See merge request GNOME/gtk!4952
This commit is contained in:
commit
e4fb6933d2
@ -344,9 +344,9 @@ get_line_pixels (GtkInscription *self,
|
|||||||
int ascent, descent;
|
int ascent, descent;
|
||||||
|
|
||||||
metrics = gtk_inscription_get_font_metrics (self);
|
metrics = gtk_inscription_get_font_metrics (self);
|
||||||
|
|
||||||
ascent = pango_font_metrics_get_ascent (metrics);
|
ascent = pango_font_metrics_get_ascent (metrics);
|
||||||
descent = pango_font_metrics_get_descent (metrics);
|
descent = pango_font_metrics_get_descent (metrics);
|
||||||
|
pango_font_metrics_unref (metrics);
|
||||||
|
|
||||||
if (baseline)
|
if (baseline)
|
||||||
*baseline = ascent;
|
*baseline = ascent;
|
||||||
@ -490,6 +490,7 @@ gtk_inscription_allocate (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pango_layout_iter_free (iter);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user