--- kpowersave-0.7.2/src/inactivity.cpp-- 2007-03-26 18:26:05.000000000 +0200 +++ kpowersave-0.7.2/src/inactivity.cpp 2007-03-26 18:27:00.000000000 +0200 @@ -314,9 +314,13 @@ // if returned some pids or if pid returned nothing if (proc->exitStatus() == 1 || proc->exitStatus() == 0){ pidof_call_failed = false; + delete proc; + proc=NULL; return; } } + delete proc; + proc = NULL; // if something crashed/failed pidof_call_failed = true; }