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
This commit is contained in:
csoler 2014-01-23 21:42:43 +00:00
parent ff2cb0fe09
commit fd682ed23d

View File

@ -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));