netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=2a0584dc2022be63fd6b90c01a9d00fe7f6590b1

commit 2a0584dc2022be63fd6b90c01a9d00fe7f6590b1
Author: Alastair Poole <nets...@gmail.com>
Date:   Thu Jan 21 10:34:57 2021 +0000

    procview: fix leaks
---
 src/bin/ui/ui_process_view.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index f03cc67..9e00cf4 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -831,11 +831,16 @@ _proc_info_feedback_cb(void *data, Ecore_Thread *thread, 
void *msg)
 
    if (!proc || (pd->start && (proc->start != pd->start)))
      {
+        if (proc) proc_info_free(proc);
         _proc_gone(pd);
         return;
      }
 
-   if (ecore_thread_check(thread)) return;
+   if (ecore_thread_check(thread))
+     {
+        proc_info_free(proc);
+        return;
+     }
 
    _threads_cpu_usage(pd, proc);
 

-- 


Reply via email to