aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2015-09-23 00:07:51 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2015-09-23 00:07:51 -0700
commit0d4bd05ca9d4d638065fd0bd174ce49db66a06ce (patch)
tree7ada012385c7e5b5587f306efed63c31779fbf08 /src
parent6b134a1a6672ce89487a652e805584679374ae78 (diff)
Fixed crash
Diffstat (limited to 'src')
-rw-r--r--src/core/provider/MCAccountValidator.cpp2
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);