aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-07-05 08:01:09 +0900
committerDominique Martinet <asmadeus@codewreck.org>2018-07-05 13:11:06 +0900
commit7ef08ffbe6dc9a0b35cd9cad0b689136e3515886 (patch)
treef3bb1f8c7a86163f89cac7e7f198861989725fb3 /sway/main.c
parentfe72e3b349f0905519481b77b22c525aca9c704d (diff)
pango/cairo: set default font map to NULL to free it
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 96e41bbc..ec7353be 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -1,6 +1,7 @@
#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200112L
#include <getopt.h>
+#include <pango/pangocairo.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -441,5 +442,7 @@ int main(int argc, char **argv) {
free_config(config);
}
+ pango_cairo_font_map_set_default(NULL);
+
return exit_value;
}