CLOUD: Fix Requests destructors

I forgot to delete callbacks!
This commit is contained in:
Alexander Tkachev 2016-05-28 01:18:37 +06:00
parent 827c7e43da
commit b74d7a6861
5 changed files with 14 additions and 6 deletions

View file

@ -32,6 +32,13 @@ FolderDownloadRequest::FolderDownloadRequest(Storage *storage, Storage::FileArra
start();
}
FolderDownloadRequest::~FolderDownloadRequest() {
_ignoreCallback = true;
if (_workingRequest) _workingRequest->finish();
delete _fileArrayCallback;
}
void FolderDownloadRequest::start() {
//cleanup
_ignoreCallback = true;