corrected other mismatched free/delete in avatar items

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2741 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-04-20 14:30:53 +00:00
parent abeb4c92ee
commit a5fc5e88e8

View File

@ -335,7 +335,7 @@ RsChatAvatarItem::RsChatAvatarItem(void *data,uint32_t size)
/* get mandatory parts first */ /* get mandatory parts first */
ok &= getRawUInt32(data, rssize, &offset,&image_size); ok &= getRawUInt32(data, rssize, &offset,&image_size);
image_data = (unsigned char *)malloc(image_size*sizeof(unsigned char)) ; image_data = new unsigned char[image_size] ;
memcpy(image_data,(void*)((unsigned char*)data+offset),image_size) ; memcpy(image_data,(void*)((unsigned char*)data+offset),image_size) ;
offset += image_size ; offset += image_size ;