Break the debug builds. Bugs must never be hidden.

develop
Petr Mrázek 2010-02-21 18:35:14 +01:00
parent 7c3f146197
commit 9300cc48cc
1 changed files with 5 additions and 4 deletions

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