summaryrefslogtreecommitdiffstats
path: root/sway/border.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/border.c')
-rw-r--r--sway/border.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/border.c b/sway/border.c
index 6343ddd0..411c0427 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -86,6 +86,8 @@ int get_font_text_height(const char *font) {
86 cairo_t *cr = cairo_create(surface); 86 cairo_t *cr = cairo_create(surface);
87 int width, height; 87 int width, height;
88 get_text_size(cr, font, &width, &height, "Gg"); 88 get_text_size(cr, font, &width, &height, "Gg");
89 cairo_surface_destroy(surface);
90 cairo_destroy(cr);
89 return height; 91 return height;
90} 92}
91 93