diff options
author | Randeep Singh <randeep.s@samsung.com> | 2019-09-12 12:58:33 +0530 |
---|---|---|
committer | Randeep Singh <randeep.s@samsung.com> | 2019-10-03 13:18:30 +0000 |
commit | 2e0f0123baba2f4b6bb047d79e88469d7a28c6fa (patch) | |
tree | bfa0212f57022f4ee5ed3b781432ab14ba2d4588 /manager | |
parent | 878d0d922733df7207fe24ad01e1e34bfad4bfee (diff) | |
download | msg-service-accepted/tizen_5.5_unified.tar.gz msg-service-accepted/tizen_5.5_unified.tar.bz2 msg-service-accepted/tizen_5.5_unified.zip |
Resolved coverity issuetizen_5.5.m2_releasesubmit/tizen_5.5_wearable_hotfix/20201026.184303submit/tizen_5.5_mobile_hotfix/20201026.185103submit/tizen_5.5/20191031.000003submit/tizen/20191005.105016submit/tizen/20191004.113118accepted/tizen/unified/20191006.223707accepted/tizen/5.5/unified/wearable/hotfix/20201027.115432accepted/tizen/5.5/unified/mobile/hotfix/20201027.083626accepted/tizen/5.5/unified/20191031.023813tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Change-Id: Ic968c91d651f47a6717f1548c58057eb82197514
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Diffstat (limited to 'manager')
-rw-r--r-- | manager/src/msg-manager-sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manager/src/msg-manager-sound.cpp b/manager/src/msg-manager-sound.cpp index 1607b0d..aefc328 100644 --- a/manager/src/msg-manager-sound.cpp +++ b/manager/src/msg-manager-sound.cpp @@ -125,7 +125,9 @@ void initMsgMgrSoundPlayer() defaultRingtonePath = vconf_get_str(VCONFKEY_SETAPPL_NOTI_RINGTONE_DEFAULT_PATH_STR); if (defaultRingtonePath == NULL || MsgMgrGetFileSize(defaultRingtonePath) < 1) { - defaultRingtonePath = (char *)DEFAULT_ALERT_FILE; + free(defaultRingtonePath); + defaultRingtonePath = NULL; + defaultRingtonePath = (char *)DEFAULT_ALERT_FILE; } MSG_MGR_DEBUG("defaultRingtonePath [%s]", defaultRingtonePath); |