diff -r 5d03bc08d59c -r 01a6848ebfd7 windowing/windowserver/nga/SERVER/openwfc/WSTOP.CPP --- a/windowing/windowserver/nga/SERVER/openwfc/WSTOP.CPP Tue Feb 02 01:47:50 2010 +0200 +++ b/windowing/windowserver/nga/SERVER/openwfc/WSTOP.CPP Fri Apr 16 16:21:04 2010 +0300 @@ -897,31 +897,6 @@ iHeapCheckMode=aCheckHeapOnDisconnectMode; } -static void ReportAllCurrentLevelLeaks() - { - class RHeapWalk: public RHeap - { - public: - static void WalkCheckCell(TAny* aPtr, TCellType aType, TAny* aCell, TInt aLen) - { - RHeapWalk* heap=(RHeapWalk*)aPtr; - (void)aCell; - switch(aType) - { - case EGoodAllocatedCell: - if ( ((SDebugCell*)aCell)->nestingLevel == heap->iNestingLevel ) - { - RDebug::Printf("Leaked heap cell: level %i, serial %i @ %08x : len=%d", - heap->iNestingLevel, ((SDebugCell*)aCell)->allocCount, aCell, aLen); - } - break; - } - } - }; - - User::Heap().DebugFunction(RHeap::EWalk, (TAny*)RHeapWalk::WalkCheckCell, &User::Heap()); - } - TBool CWsTop::NeedsHeapCheckAndRestart(TInt aStartHeapCount) { if (!iDoHeapCheckAndRestart) @@ -932,7 +907,6 @@ { const TUint32 orphanedCell = User::Heap().__DbgMarkEnd(aStartHeapCount); RDebug::Printf("Memory leak detected in wserv. First orphaned cell: 0x%8x", orphanedCell); - ReportAllCurrentLevelLeaks(); } return(ETrue); }