diff options
author | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-04-04 17:55:08 +0900 |
---|---|---|
committer | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-04-04 17:55:08 +0900 |
commit | 2b9cc4cd4f4fa0f0239e374697abd27a133b0e61 (patch) | |
tree | a7d2abc1137947d1683da7a19987e8f128d34eb0 | |
parent | 2861f388ee8accfddc4bd0f733bc24599f57081c (diff) | |
download | msg-service-2b9cc4cd4f4fa0f0239e374697abd27a133b0e61.tar.gz msg-service-2b9cc4cd4f4fa0f0239e374697abd27a133b0e61.tar.bz2 msg-service-2b9cc4cd4f4fa0f0239e374697abd27a133b0e61.zip |
memory leak issue fixed
Change-Id: I218911208c871855e1922dc3f0054a9174ac7741
-rw-r--r-- | manager/src/msg-manager-sound.cpp | 2 | ||||
-rw-r--r-- | manager/src/msg-manager.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/manager/src/msg-manager-sound.cpp b/manager/src/msg-manager-sound.cpp index e2fa7e6..a10b690 100644 --- a/manager/src/msg-manager-sound.cpp +++ b/manager/src/msg-manager-sound.cpp @@ -616,5 +616,3 @@ void MsgMgrSoundPlayVibration(char *vibrationPath) MSG_MGR_END(); } - - diff --git a/manager/src/msg-manager.cpp b/manager/src/msg-manager.cpp index ad8aa81..d054016 100644 --- a/manager/src/msg-manager.cpp +++ b/manager/src/msg-manager.cpp @@ -439,6 +439,9 @@ void _insert_only_active_noti_func(app_control_h app_control) msg_get_str_value(msg, MSG_MESSAGE_SMS_DATA_STR, msg_info.msgText, MAX_MSG_TEXT_LEN); } + msg_release_struct(&msg); + msg_release_struct(&opt); + g_free(msgId); MsgMgrInsertOnlyActiveNotification(noti_type, &msg_info); |