diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-27 16:04:49 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-27 16:04:49 +0000 |
commit | 48b0cebec2f4ae03d14ea1e9ca8caf800a1eaa29 (patch) | |
tree | b059e8a354f1977f5364561d42d5ed60681ac9d1 /plugins/Dropbox | |
parent | 70f3303093a5e720436470642b3916f08f2aee9d (diff) |
Dropbox: memleak fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index ebebed6fc3..be83616567 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -112,11 +112,11 @@ UINT CDropbox::UploadToDropbox(void *owner, void *arg) uint64_t fileSize = ftp->GetCurrentFileSize();
int chunkSize = ftp->GetCurrentFileChunkSize();
- char *data = (char*)mir_calloc(chunkSize);
+ mir_ptr<char>data((char*)mir_calloc(chunkSize));
size_t size = ftp->ReadCurrentFile(data, chunkSize);
size_t offset = 0;
- char sessionId[32];
+ char sessionId[64];
instance->StartUploadSession(data, size, sessionId);
offset += size;
|