From 8014327d50c35a4c80fab6d3f73af3a1af031190 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Wed, 17 Nov 2010 09:46:05 +0100 Subject: [PATCH] Fix a memory leak in init_look. init_look may be called from cmd_set so we've to free Zathura.Style.font first. --- zathura.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zathura.c b/zathura.c index 99d4181..c27dfc9 100644 --- a/zathura.c +++ b/zathura.c @@ -497,6 +497,7 @@ init_look(void) gdk_color_parse(search_highlight, &(Zathura.Style.search_highlight)); gdk_color_parse(select_text, &(Zathura.Style.select_text)); + pango_font_description_free(Zathura.Style.font); Zathura.Style.font = pango_font_description_from_string(font); /* window and viewport */