Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > b2e3ac505bd14bf924e2c9becacc2082 > files > 7

kpowersave-0.7.2-16mdv2008.0.src.rpm

--- 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;
 }