From: Junghwan Song Date: Fri, 7 Sep 2012 09:06:21 +0000 (+0900) Subject: fix the wrong vconf value of nw_name X-Git-Tag: 2.0_alpha^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=HEAD;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-vconf.git fix the wrong vconf value of nw_name --- 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)