diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index 4666932190..08774cef96 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -172,6 +172,10 @@ INT_PTR CDropbox::UploadToDropbox(WPARAM wParam, LPARAM lParam) if (PathIsDirectory(uploadInfo->localPath))
{
// temporary unsupported
+
+ transfers.remove(ftp);
+ delete ftp;
+
return ACKRESULT_FAILED;
}
else
@@ -183,6 +187,9 @@ INT_PTR CDropbox::UploadToDropbox(WPARAM wParam, LPARAM lParam) *data = mir_utf8encodeT(ftp->GetData());
}
+ transfers.remove(ftp);
+ delete ftp;
+
return res;
}
@@ -197,6 +204,10 @@ INT_PTR CDropbox::UploadToDropboxAsync(WPARAM, LPARAM lParam) if (PathIsDirectory(uploadInfo->localPath))
{
// temporary unsupported
+
+ transfers.remove(ftp);
+ delete ftp;
+
return NULL;
}
else
|