procview: fix leaks

This commit is contained in:
Alastair Poole 2021-01-21 10:34:57 +00:00
parent 165635a891
commit 2a0584dc20
1 changed files with 6 additions and 1 deletions

View File

@ -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);