diff -r 2d65c2f76d7b -r 947f0dc9f7a8 kerneltest/e32test/debug/t_perflogger.cpp --- a/kerneltest/e32test/debug/t_perflogger.cpp Tue Feb 02 01:24:03 2010 +0200 +++ b/kerneltest/e32test/debug/t_perflogger.cpp Fri Apr 16 16:24:37 2010 +0300 @@ -105,6 +105,7 @@ { TUint8* record; TTraceLayout traceLayout; + TInt nRecords = 0; for(TInt i=0; ;++i) { @@ -134,7 +135,6 @@ TUint8* end = record+dataSize; TUint8* currPos = record; - TInt nRecords = 0; TUint nBytes = 0; //-- parser the record, print out fields and optionally check the correspondence to the fields of the control structure. @@ -168,16 +168,17 @@ } } + + //-- release data buffer. + aTrace.DataUsed(); + } - //-- check number of trace records obtained - if(apControlStruct) - { - test(nRecords == apControlStruct->iLogsNum); - } - - //-- release data buffer. - aTrace.DataUsed(); + //-- check number of trace records obtained + if(apControlStruct) + { + test(nRecords == apControlStruct->iLogsNum); } + }