Move the update_fonts check earlier, before the last_*font
pointers get modified.
last_derive != prefs_common.derive_from_normal_font)
update_font = TRUE;
+ if (!update_font)
+ return;
+
g_free(last_smallfont);
last_smallfont = g_strdup(SMALL_FONT);
g_free(last_normalfont);
last_boldfont = g_strdup(BOLD_FONT);
last_derive = prefs_common.derive_from_normal_font;
- if (!update_font)
- return;
-
normal_style = normal_color_style = bold_style =
bold_color_style = bold_tgtfold_style = NULL;