summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-05-17 22:01:01 +0100
committerAlastair Poole <netstar@gmail.com>2020-05-17 22:01:01 +0100
commitb88601ba7db27b93dcf058ebbed819a36a5a4151 (patch)
treeb0c1f7cfd3f8d986fa5e72a993685d0ca07d5af1
parentc546e69c034dc058c75bcecaa5bfb9c280fe5003 (diff)
proc_view: don't leak
-rw-r--r--src/bin/ui/ui_process_view.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index 3a949fe..d793aee 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -48,7 +48,7 @@ _item_unrealized_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
48 { 48 {
49 if (it->obj == o) 49 if (it->obj == o)
50 { 50 {
51 it->used = EINA_FALSE; 51 it->used = 0;
52 break; 52 break;
53 } 53 }
54 } 54 }
@@ -129,6 +129,17 @@ _item_create(Evas_Object *parent)
129 return table; 129 return table;
130} 130}
131 131
132static void
133_cache_free(Eina_List *cache)
134{
135 Item_Cache *it;
136 EINA_LIST_FREE(cache, it)
137 {
138 free(it);
139 }
140
141 eina_list_free(cache);
142}
132 143
133static void 144static void
134_cache_init(Ui_Process *ui) 145_cache_init(Ui_Process *ui)
@@ -977,8 +988,11 @@ _win_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
977 ecore_timer_del(ui->timer_pid); 988 ecore_timer_del(ui->timer_pid);
978 if (ui->selected_cmd) 989 if (ui->selected_cmd)
979 free(ui->selected_cmd); 990 free(ui->selected_cmd);
991 if (ui->item_cache)
992 _cache_free(ui->item_cache);
980 993
981 evas_object_del(win); 994 evas_object_del(win);
995
982 free(ui); 996 free(ui);
983} 997}
984static void 998static void