fixed two memory bugs in serialization code

This commit is contained in:
csoler 2017-04-24 10:11:24 +02:00
parent 31c07f4dfd
commit 91b04098b6
2 changed files with 5 additions and 6 deletions

View file

@ -75,7 +75,7 @@ RsChatAvatarItem::~RsChatAvatarItem()
{
if(image_data != NULL)
{
delete[] image_data ;
free(image_data) ;
image_data = NULL ;
}
}