mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
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:
parent
abeb4c92ee
commit
a5fc5e88e8
@ -335,7 +335,7 @@ RsChatAvatarItem::RsChatAvatarItem(void *data,uint32_t size)
|
||||
/* get mandatory parts first */
|
||||
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) ;
|
||||
offset += image_size ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user