diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox_transfers.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index f7d10463e3..459914521c 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -151,7 +151,7 @@ UINT CDropbox::SendFilesAsync(void *owner, void *arg) if (ftp->isTerminated)
throw TransferException("Transfer was terminated");
- char *data = new char[chunkSize + 1];
+ char *data = (char*)mir_alloc(chunkSize);
int count = (int)fread(data, sizeof(char), chunkSize, hFile);
if (offset == 0)
|