diff options
Diffstat (limited to 'utils/utils_helper.h')
-rw-r--r-- | utils/utils_helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/utils_helper.h b/utils/utils_helper.h index 86d5849..b91067b 100644 --- a/utils/utils_helper.h +++ b/utils/utils_helper.h @@ -85,6 +85,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files, bool retval = chunk->load(binfile); if (!retval) { fprintf(stderr, "load %s failed!\n", binfile); + delete chunk; return false; } |