Fix Pango-Cairo context leak

We own the Pango-Cairo context and must release it.
This commit is contained in:
Joan Bruguera Micó 2024-07-07 15:15:06 +00:00 committed by Jari Vetoniemi
parent 6f63f3f197
commit 5d5fd16f76

View File

@ -85,6 +85,8 @@ bm_cairo_destroy(struct cairo *cairo)
{
if (cairo->cr)
cairo_destroy(cairo->cr);
if (cairo->pango)
g_object_unref(cairo->pango);
if (cairo->surface)
cairo_surface_destroy(cairo->surface);
}