]> git.mdlowis.com Git - proto/labwc.git/commitdiff
common/font.c: add cairo_destroy()
authorJohan Malm <jgm323@gmail.com>
Fri, 14 Aug 2020 16:57:18 +0000 (17:57 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 14 Aug 2020 16:57:18 +0000 (17:57 +0100)
src/common/font.c

index acf497522c90b27c73be7271a021c30ec86f3e3a..40e59ef33c0480b74d1238ab613d58066c1743c4 100644 (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 :) */
        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;
 }