diff options
author | Cheoleun Moon <chleun.moon@samsung.com> | 2021-07-06 15:05:05 +0900 |
---|---|---|
committer | Cheoleun Moon <chleun.moon@samsung.com> | 2021-07-06 15:05:11 +0900 |
commit | faf46c1fe6f463ebe72c304e702def87cf1ea0cf (patch) | |
tree | 96f599edfe3fad286d08a53f434316e80d6d71cb | |
parent | 4ccab15ec9b6f03064fec0e27e961a0d81230ae4 (diff) | |
download | wifi-tizen_6.5.tar.gz wifi-tizen_6.5.tar.bz2 wifi-tizen_6.5.zip |
Fix resource leaktizen_6.5.m2_releasesubmit/tizen_6.5/20211028.164101submit/tizen/20210706.065747accepted/tizen/unified/20210707.070843accepted/tizen/6.5/unified/20211028.224427tizen_6.5accepted/tizen_6.5_unified
Change-Id: Ifcc666013630f039f497ae956f427d12961586a6
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
-rwxr-xr-x | sources/wearable/src/wearable-circle/view/layout_scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/wearable/src/wearable-circle/view/layout_scan.c b/sources/wearable/src/wearable-circle/view/layout_scan.c index a6cb838..15217d6 100755 --- a/sources/wearable/src/wearable-circle/view/layout_scan.c +++ b/sources/wearable/src/wearable-circle/view/layout_scan.c @@ -341,12 +341,13 @@ static gboolean _ap_list_update_ap_items(layout_scan_object *self) { GList *l = self->ap_data_list; guint index, old_items_count = elm_genlist_items_count(self->ap_list); + WIFI_RET_VAL_IF_FAIL(old_items_count >= 1, FALSE); + guint new_items_count = g_list_length(self->ap_data_list); Elm_Genlist_Item_Class *wifi_ap_itc = _create_wifi_ap_itc(self); Elm_Object_Item *ap_item = NULL; __WIFI_FUNC_ENTER__; - WIFI_RET_VAL_IF_FAIL(old_items_count >= 1, FALSE); WIFI_RET_VAL_IF_FAIL(wifi_ap_itc != NULL, FALSE); old_items_count -= 1; |