From e4ca47fb406e9bb3120683c7d0275087c56b60e1 Mon Sep 17 00:00:00 2001 From: Junghwan Song Date: Fri, 7 Sep 2012 18:06:21 +0900 Subject: [PATCH] fix the wrong vconf value of nw_name --- packaging/tel-plugin-vconf.spec | 2 +- src/desc-vconf.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/tel-plugin-vconf.spec b/packaging/tel-plugin-vconf.spec index 7132b66..55f570d 100644 --- a/packaging/tel-plugin-vconf.spec +++ b/packaging/tel-plugin-vconf.spec @@ -1,7 +1,7 @@ #sbs-git:slp/pkgs/t/tel-plugin-vconf Name: tel-plugin-vconf Summary: Telephony Vconf storage plugin -Version: 0.1.17 +Version: 0.1.18 Release: 1 Group: System/Libraries License: Apache diff --git a/src/desc-vconf.c b/src/desc-vconf.c index 5f43656..d3f8aad 100644 --- a/src/desc-vconf.c +++ b/src/desc-vconf.c @@ -527,9 +527,6 @@ static void _update_vconf_network_name(CoreObject *o, const char *plmn) mnc[2] = '\0'; } - if (!plmn) - free(plmn_str); - tcore_network_get_service_type(o, &svc_type); tcore_network_get_network_name_priority(o, &network_name_priority); @@ -599,6 +596,9 @@ static void _update_vconf_network_name(CoreObject *o, const char *plmn) default: break; } + + if (!plmn) + free(plmn_str); } static enum tcore_hook_return on_hook_network_location_cellinfo(Server *s, CoreObject *source, enum tcore_notification_command command, unsigned int data_len, void *data, void *user_data) -- 2.34.1