From a5fc5e88e8471e4eaf0888fcfe1958464022cc28 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 20 Apr 2010 14:30:53 +0000 Subject: [PATCH] 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 --- libretroshare/src/serialiser/rsmsgitems.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/serialiser/rsmsgitems.cc b/libretroshare/src/serialiser/rsmsgitems.cc index fc48785b8..45af3ba0c 100644 --- a/libretroshare/src/serialiser/rsmsgitems.cc +++ b/libretroshare/src/serialiser/rsmsgitems.cc @@ -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 ;