fix the wrong vconf value of nw_name 2.0alpha master 2.0_alpha submit/master/20120920.151118
authorJunghwan Song <jump.song@samsung.com>
Fri, 7 Sep 2012 09:06:21 +0000 (18:06 +0900)
committerJunghwan Song <jump.song@samsung.com>
Fri, 7 Sep 2012 09:06:21 +0000 (18:06 +0900)
packaging/tel-plugin-vconf.spec
src/desc-vconf.c

index 7132b66..55f570d 100644 (file)
@@ -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
index 5f43656..d3f8aad 100644 (file)
@@ -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)