cmcfixes73: #i109922# fix new[]/delete mismatch

This commit is contained in:
Caolán McNamara 2010-03-10 12:00:53 +00:00
parent f696d8ce6b
commit dc354f51b4

View file

@ -266,7 +266,7 @@ void Dir::Construct( DirEntryKind nKindFlags )
strcpy( pBuffer, aTStr.GetBuffer() ); strcpy( pBuffer, aTStr.GetBuffer() );
CharLowerBuff( pBuffer, aTStr.Len() ); CharLowerBuff( pBuffer, aTStr.Len() );
aNameMask = WildCard( String(pBuffer, osl_getThreadTextEncoding()), ';' ); aNameMask = WildCard( String(pBuffer, osl_getThreadTextEncoding()), ';' );
delete pBuffer; delete [] pBuffer;
} }
#else #else
aNameMask = WildCard( CutName(), ';' ); aNameMask = WildCard( CutName(), ';' );