summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwangbok Kim <gwangbok.kim@samsung.com>2013-04-10 19:15:42 +0900
committerGerrit Code Review <gerrit2@kim11>2013-04-10 19:15:42 +0900
commitaa8309308e877abb05a1284b617ae5078a1f429d (patch)
tree2437b3744611e5f8abb6bd5012be9ad4bedb95a0
parent215290348494b879c1e7f6962b888804a7185562 (diff)
parent55c16a8de6831193bcff78e38aff0f5f81ef499b (diff)
downloadsocial-aa8309308e877abb05a1284b617ae5078a1f429d.tar.gz
social-aa8309308e877abb05a1284b617ae5078a1f429d.tar.bz2
social-aa8309308e877abb05a1284b617ae5078a1f429d.zip
Merge "fix code for DCM-1284" into tizen_2.1
-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;