[theme] dangerous bug: init handles to NULL on theme creation

This commit is contained in:
Milo Turner 2020-02-25 11:36:43 -05:00
parent a61fe30148
commit 26e66d9f61
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ struct ax_theme* ax__theme_builder_finish(
thm->font_path[i] = (thm->font_path[i] == NULL) ?
dflt_font_path :
rstrdup(dst_rgn, thm->font_path[i]);
thm->font_handle[i] = NULL;
}
thm->on_load_rgn = rgn_new(dst_rgn, SMALL);
thm->on_load = NULL;