License and Privilege changes
[apps/osp/Call.git] / src / CallSettingsManager.cpp
index 2b262f3..3cdc5ed 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
@@ -136,8 +136,15 @@ SettingsManager::RemoveSettingEventListener(ISettingsEventListener* pSettingsEve
 bool
 SettingsManager::IsCallToBeRejected(String& phoneNumber)
 {
+       if(__pCallSettingDataService != null)
+       {
        return __pCallSettingDataService->IsCallToBeRejected(phoneNumber);
 }
+       else
+       {
+               return false;
+       }
+}
 
 bool
 SettingsManager::GetUnknownRejectStatus(void)
@@ -290,6 +297,8 @@ SettingsManager::GetRejectMessageListN(void)
                        {
                                delete pMessageMap;
                                pMessageMap = null;
+                               delete pMessageStr;
+                               pMessageStr = null;
                                return null;
                        }
                        break;