pango/cairo: set default font map to NULL to free it

master
Dominique Martinet 7 years ago
parent fe72e3b349
commit 7ef08ffbe6

@ -1,6 +1,7 @@
#define _XOPEN_SOURCE 700 #define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#include <getopt.h> #include <getopt.h>
#include <pango/pangocairo.h>
#include <signal.h> #include <signal.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
@ -441,5 +442,7 @@ int main(int argc, char **argv) {
free_config(config); free_config(config);
} }
pango_cairo_font_map_set_default(NULL);
return exit_value; return exit_value;
} }

Loading…
Cancel
Save