aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/onedrive/onedrivestorage.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-20 14:44:24 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitf743b319633dcd57ea08f5ac86d3daec548d1ab0 (patch)
treeff02af57d11ce16e01c9adae9df081155f71aee5 /backends/cloud/onedrive/onedrivestorage.h
parent0200694dd050409eec7a30efd8a616ab6b1fdae1 (diff)
downloadscummvm-rg350-f743b319633dcd57ea08f5ac86d3daec548d1ab0.tar.gz
scummvm-rg350-f743b319633dcd57ea08f5ac86d3daec548d1ab0.tar.bz2
scummvm-rg350-f743b319633dcd57ea08f5ac86d3daec548d1ab0.zip
CLOUD: Fix CloudManager::connectStorage() memory leak
Diffstat (limited to 'backends/cloud/onedrive/onedrivestorage.h')
-rw-r--r--backends/cloud/onedrive/onedrivestorage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/cloud/onedrive/onedrivestorage.h b/backends/cloud/onedrive/onedrivestorage.h
index 650c240aef..8ceaaf107e 100644
--- a/backends/cloud/onedrive/onedrivestorage.h
+++ b/backends/cloud/onedrive/onedrivestorage.h
@@ -41,6 +41,7 @@ class OneDriveStorage: public Cloud::Storage {
void tokenRefreshed(BoolCallback callback, Networking::JsonResponse response);
void codeFlowComplete(BoolResponse response);
+ void codeFlowFailed(Networking::ErrorResponse error);
/** Constructs StorageInfo based on JSON response from cloud. */
void infoInnerCallback(StorageInfoCallback outerCallback, Networking::JsonResponse json);
@@ -101,7 +102,7 @@ public:
* Use "" in order to refresh token and pass a callback, so you could
* continue your work when new token is available.
*/
- void getAccessToken(BoolCallback callback, Common::String code = "");
+ void getAccessToken(BoolCallback callback, Networking::ErrorCallback errorCallback = nullptr, Common::String code = "");
Common::String accessToken() { return _token; }
};