aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/dropbox
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-22 20:02:36 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitf3959e140106334b33cf74832fc5b20d27407d0a (patch)
tree420bfa32f00fa24723176bd85dbc4b25cbda45df /backends/cloud/dropbox
parentf95073f0084b3fae3e2cbf14fd98135c37eabbdf (diff)
downloadscummvm-rg350-f3959e140106334b33cf74832fc5b20d27407d0a.tar.gz
scummvm-rg350-f3959e140106334b33cf74832fc5b20d27407d0a.tar.bz2
scummvm-rg350-f3959e140106334b33cf74832fc5b20d27407d0a.zip
CLOUD: Upload ListDirectory Requests
Lots of checks to avoid JSON-related segfaults added.
Diffstat (limited to 'backends/cloud/dropbox')
-rw-r--r--backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp b/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
index def9155f4e..2e1d61812a 100644
--- a/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
+++ b/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
@@ -71,8 +71,10 @@ void DropboxListDirectoryRequest::start() {
void DropboxListDirectoryRequest::responseCallback(Networking::JsonResponse response) {
_workingRequest = nullptr;
- if (_ignoreCallback)
+ if (_ignoreCallback) {
+ delete response.value;
return;
+ }
if (response.request)
_date = response.request->date();