diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-09-23 00:07:51 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-09-23 00:07:51 -0700 |
commit | 0d4bd05ca9d4d638065fd0bd174ce49db66a06ce (patch) | |
tree | 7ada012385c7e5b5587f306efed63c31779fbf08 /src/core/provider | |
parent | 6b134a1a6672ce89487a652e805584679374ae78 (diff) |
Fixed crash
Diffstat (limited to 'src/core/provider')
-rw-r--r-- | src/core/provider/MCAccountValidator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/provider/MCAccountValidator.cpp b/src/core/provider/MCAccountValidator.cpp index 781cd960..de98b14f 100644 --- a/src/core/provider/MCAccountValidator.cpp +++ b/src/core/provider/MCAccountValidator.cpp @@ -98,10 +98,12 @@ void AccountValidator::start() } else { mEmail = mUsername; + MC_SAFE_RETAIN(mEmail); } } else if (mUsername == NULL){ mUsername = mEmail; + MC_SAFE_RETAIN(mUsername); } MC_SAFE_RELEASE(mProvider); |