mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-02 11:49:36 -05:00
corrected other mismatched free/delete in avatar items
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2741 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4b49ef34ec
commit
d7f555ff5c
@ -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…
x
Reference in New Issue
Block a user