|
|
|
@ -67,9 +67,10 @@ bool ProcessEnumerator::findProcessess()
|
|
|
|
|
{
|
|
|
|
|
// Get the list of process identifiers.
|
|
|
|
|
DWORD ProcArray[2048], memoryNeeded, numProccesses;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
Process *p = new SHMProcess(d->meminfo->meminfo);
|
|
|
|
|
delete p;
|
|
|
|
|
p = new SHMProcess(d->meminfo->meminfo);
|
|
|
|
|
if(p->isIdentified())
|
|
|
|
|
{
|
|
|
|
|
d->processes.push_back(p);
|
|
|
|
@ -77,7 +78,7 @@ bool ProcessEnumerator::findProcessess()
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//FIXME delete p;
|
|
|
|
|
delete p;
|
|
|
|
|
p = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -102,7 +103,7 @@ bool ProcessEnumerator::findProcessess()
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//FIXME delete q;
|
|
|
|
|
delete q;
|
|
|
|
|
q = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -134,7 +135,7 @@ void ProcessEnumerator::purge()
|
|
|
|
|
{
|
|
|
|
|
for(uint32_t i = 0;i < d->processes.size();i++)
|
|
|
|
|
{
|
|
|
|
|
//FIXME delete d->processes[i];
|
|
|
|
|
delete d->processes[i];
|
|
|
|
|
}
|
|
|
|
|
d->processes.clear();
|
|
|
|
|
}
|
|
|
|
|