From: wn.jang Date: Tue, 31 Dec 2019 00:18:25 +0000 (+0900) Subject: Fix crash issue X-Git-Tag: accepted/tizen/unified/20200323.173028~8 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fstt.git;a=commitdiff_plain;h=2477f91e51c378e28254809d7da6a0e4ff73d0a7 Fix crash issue Change-Id: I4141e9424a2501eefda98f4b8cee73ba17c1dbc9 --- diff --git a/common/stt_config_parser.c b/common/stt_config_parser.c index b179ffc..7292a1d 100644 --- a/common/stt_config_parser.c +++ b/common/stt_config_parser.c @@ -521,7 +521,10 @@ int stt_parser_load_config(stt_config_s** config_info) int stt_parser_unload_config(stt_config_s* config_info) { - if (NULL != g_config_doc) xmlFreeDoc(g_config_doc); + if (NULL != g_config_doc) { + xmlFreeDoc(g_config_doc); + g_config_doc = NULL; + } if (NULL != config_info) { if (NULL != config_info->engine_id) { free(config_info->engine_id);