mirror of
https://github.com/Cloudef/bemenu
synced 2025-01-18 08:20:41 +00:00
Fix Pango-Cairo context leak
We own the Pango-Cairo context and must release it.
This commit is contained in:
parent
6f63f3f197
commit
5d5fd16f76
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user