From fd682ed23d1b4f23da89b84db3511939a56e7616 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 23 Jan 2014 21:42:43 +0000 Subject: [PATCH] fixed mismatched free/delete in p3channels.cc git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7053 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3channels.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libretroshare/src/services/p3channels.cc b/libretroshare/src/services/p3channels.cc index bf9acea21..27cefcb06 100644 --- a/libretroshare/src/services/p3channels.cc +++ b/libretroshare/src/services/p3channels.cc @@ -265,8 +265,7 @@ bool p3Channels::ChannelMessageSend(ChannelMsgInfo &info) if((info.thumbnail.image_thumbnail != NULL) && (info.thumbnail.im_thumbnail_size > 0)){ - cmsg->thumbnail.binData.bin_data = - new unsigned char[info.thumbnail.im_thumbnail_size]; + cmsg->thumbnail.binData.bin_data = (unsigned char*)malloc(info.thumbnail.im_thumbnail_size); memcpy(cmsg->thumbnail.binData.bin_data, info.thumbnail.image_thumbnail, info.thumbnail.im_thumbnail_size*sizeof(unsigned char));