diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2016-10-10 08:57:31 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2016-10-10 09:06:20 +0900 |
commit | cfa952c7a005ff7fb143b05ecd825df868800934 (patch) | |
tree | b88af538f0e334e4a4cc4a695fd672c60015d38c | |
parent | 675e99a66c22e12330b236713de86a33e5cf2066 (diff) | |
download | bluetooth-cfa952c7a005ff7fb143b05ecd825df868800934.tar.gz bluetooth-cfa952c7a005ff7fb143b05ecd825df868800934.tar.bz2 bluetooth-cfa952c7a005ff7fb143b05ecd825df868800934.zip |
Remove possible memory leaksubmit/tizen/20161010.001748accepted/tizen/wearable/20161010.082732
Change-Id: I0846baf67b3bbb57178611237292f2f24701c652
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r-- | packaging/org.tizen.bluetooth.spec | 2 | ||||
-rw-r--r-- | src/bt-main-view.c | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/packaging/org.tizen.bluetooth.spec b/packaging/org.tizen.bluetooth.spec index f687780..32b1c27 100644 --- a/packaging/org.tizen.bluetooth.spec +++ b/packaging/org.tizen.bluetooth.spec @@ -1,6 +1,6 @@ %define PREFIX /usr/apps/org.tizen.bluetooth Name: org.tizen.bluetooth -Version: 0.1.0 +Version: 0.1.1 Release: 0 Summary: Tizen W BT headset connection application URL: http://slp-source.sec.samsung.net diff --git a/src/bt-main-view.c b/src/bt-main-view.c index ae92338..00b74cc 100644 --- a/src/bt-main-view.c +++ b/src/bt-main-view.c @@ -958,12 +958,13 @@ static char *__bt_gl_bluetooth_label_get(void *data, Evas_Object *obj, const cha return name_str; } else if (!strcmp(part, "elm.text.2")) { name_str = vconf_get_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR); - new_access_info = g_strdup_printf("%s, %s, %s, %s, %s", BT_STR_BLUETOOTH, - name_str, BT_STR_VISIBLE, BT_STR_SWITCH_FOR_TTS, - BT_STR_ON_FOR_TTS); - DBG("new_access_info : %s", new_access_info); - elm_access_info_set(access_obj, ELM_ACCESS_INFO, new_access_info); - g_free(new_access_info); + new_access_info = g_strdup_printf("%s, %s, %s, %s, %s", BT_STR_BLUETOOTH, + name_str, BT_STR_VISIBLE, BT_STR_SWITCH_FOR_TTS, + BT_STR_ON_FOR_TTS); + DBG("new_access_info : %s", new_access_info); + elm_access_info_set(access_obj, ELM_ACCESS_INFO, new_access_info); + g_free(name_str); + g_free(new_access_info); return g_strdup(BT_STR_VISIBLE); } return NULL; |