} else if (cur->name && 0 == xmlStrcmp(cur->name, (const xmlChar*)MA_TAG_ASSISTANT_NAME)) {
key = xmlNodeGetContent(cur);
if (key) {
+ if (temp->name) {
+ free((void*)temp->name);
+ temp->name = NULL;
+ }
temp->name = strdup((const char*)key);
MA_SLOGD("Name : %s", key);
xmlFree(key);
} else if (cur->name && 0 == xmlStrcmp(cur->name, (const xmlChar*)MA_TAG_ASSISTANT_APPID)) {
key = xmlNodeGetContent(cur);
if (key) {
+ if (temp->app_id) {
+ free((void*)temp->app_id);
+ temp->app_id = NULL;
+ }
temp->app_id = strdup((const char*)key);
MA_SLOGD("ID : %s", key);
xmlFree(key);
} else if (cur->name && 0 == xmlStrcmp(cur->name, (const xmlChar*)MA_TAG_ASSISTANT_ICON_PATH)) {
key = xmlNodeGetContent(cur);
if (key) {
+ if (temp->icon_path) {
+ free((void*)temp->icon_path);
+ temp->icon_path = NULL;
+ }
temp->icon_path = strdup((const char*)key);
MA_SLOGD("Icon Path : %s", key);
xmlFree(key);