diff options
author | Alexander Tkachev | 2016-07-22 20:02:36 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | f3959e140106334b33cf74832fc5b20d27407d0a (patch) | |
tree | 420bfa32f00fa24723176bd85dbc4b25cbda45df /backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp | |
parent | f95073f0084b3fae3e2cbf14fd98135c37eabbdf (diff) | |
download | scummvm-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/dropboxlistdirectoryrequest.cpp')
-rw-r--r-- | backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp | 4 |
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(); |