diff --git a/honoka/plugins/wnnconversion.cpp b/honoka/plugins/wnnconversion.cpp index 299a348..8ab9672 100644 --- a/honoka/plugins/wnnconversion.cpp +++ b/honoka/plugins/wnnconversion.cpp @@ -140,13 +140,13 @@ void WnnConversion::wnnDisconnect() { if (wnn != NULL) { + jl_dic_save_all(wnn); #ifdef HAVE_LIBWNN7 jl_yosoku_free(wnn); #endif jl_close(wnn); wnn = NULL; } - jl_dic_save_all(); } diff --git a/honoka/plugins/wnnproto.h b/honoka/plugins/wnnproto.h index d5942b9..c085734 100644 --- a/honoka/plugins/wnnproto.h +++ b/honoka/plugins/wnnproto.h @@ -75,7 +75,7 @@ extern int jl_yosoku_ikkatsu_toroku_init(struct wnn_buf *); extern int jl_yosoku_ikkatsu_toroku_end(struct wnn_buf *); extern int jl_yosoku_toroku(struct wnn_buf *,w_char *,short); - extern int jl_dic_save_all(); + extern int jl_dic_save_all(struct wnn_buf*); #else int wnn_get_area(struct wnn_buf*,int,int,w_char*,int);