mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
ff2cb0fe09
commit
fd682ed23d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user