summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FScl_AddressbookImpl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FScl_AddressbookImpl.cpp b/src/FScl_AddressbookImpl.cpp
index 0e1cf82..33b34a8 100644
--- a/src/FScl_AddressbookImpl.cpp
+++ b/src/FScl_AddressbookImpl.cpp
@@ -1447,6 +1447,14 @@ _AddressbookImpl::IsUserProfileChangedAfter(int version) const
SysTryReturn(NID_SCL, version >= 0, false, E_INVALID_ARG, "[%s] Invalid argument is used. version %d must be greater that or equal 0.", GetErrorMessage(E_INVALID_ARG), version);
SysTryReturn(NID_SCL, _ContactDbConnector::EnsureDbConnection() == E_SUCCESS, false, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+ UserProfile* pExistingProfile = GetUserProfileN();
+ if (pExistingProfile == null)
+ {
+ return false;
+ }
+
+ delete pExistingProfile;
+
ClearLastResult();
int latestVersion = 0;