mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
common/font.c: add cairo_destroy()
This commit is contained in:
parent
7affa5f05d
commit
759b8e2757
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue