branch | RCL_3 |
changeset 56 | 63223d4fd956 |
parent 55 | 6c1dfe4da5dd |
child 59 | 666f9a5a90a9 |
--- a/mmappcomponents/mmmtpdataprovider/src/cmmmtpdpmetadatampxaccess.cpp Tue Aug 31 15:41:40 2010 +0300 +++ b/mmappcomponents/mmmtpdataprovider/src/cmmmtpdpmetadatampxaccess.cpp Wed Sep 01 12:23:05 2010 +0100 @@ -902,7 +902,7 @@ delete iSampleData; iSampleData = NULL; - iSampleData = HBufC8::NewL( numElements ); + iSampleData = HBufC8::NewL( numElements * sizeof( TUint8 ) ); TPtr8 samplePtr = iSampleData->Des(); mtpTypeArray.ToDes( samplePtr ); RFile sampleFile;