From 48b0cebec2f4ae03d14ea1e9ca8caf800a1eaa29 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 27 Apr 2016 16:04:49 +0000 Subject: Dropbox: memleak fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_transfers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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_ptrdata((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; -- cgit v1.2.3