From: Johan Malm Date: Fri, 14 Aug 2020 16:57:18 +0000 (+0100) Subject: common/font.c: add cairo_destroy() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=759b8e2757847370d31805e69aaffdad0a568be1;p=proto%2Flabwc.git common/font.c: add cairo_destroy() --- diff --git a/src/common/font.c b/src/common/font.c index acf49752..40e59ef3 100644 --- a/src/common/font.c +++ b/src/common/font.c @@ -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 :) */ rect.width += 4; - g_object_unref(layout); + cairo_destroy(c); + cairo_surface_destroy(surface); pango_font_description_free(font); + g_object_unref(layout); return rect; }