common/font.c: add cairo_destroy()

This commit is contained in:
Johan Malm 2020-08-14 17:57:18 +01:00
parent 7affa5f05d
commit 759b8e2757

View file

@ -28,8 +28,10 @@ static PangoRectangle font_extents(const char *font_description,
/* we put a 2 px edge on each side - because Openbox does it :) */ /* we put a 2 px edge on each side - because Openbox does it :) */
rect.width += 4; rect.width += 4;
g_object_unref(layout); cairo_destroy(c);
cairo_surface_destroy(surface);
pango_font_description_free(font); pango_font_description_free(font);
g_object_unref(layout);
return rect; return rect;
} }