mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-05 12:51:08 -05:00
corrected mismatched free/delete in avatar items. Might have caused random crashes.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2740 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6f045cd0b2
commit
4b49ef34ec
@ -149,8 +149,11 @@ uint32_t RsChatAvatarItem::serial_size()
|
||||
|
||||
RsChatAvatarItem::~RsChatAvatarItem()
|
||||
{
|
||||
free(image_data) ;
|
||||
image_data = NULL ;
|
||||
if(image_data != NULL)
|
||||
{
|
||||
delete[] image_data ;
|
||||
image_data = NULL ;
|
||||
}
|
||||
}
|
||||
|
||||
/* serialise the data to the buffer */
|
||||
|
Loading…
Reference in New Issue
Block a user