From aec17abbca1ac8131bb21ec1b309e76e74ed2cdd Mon Sep 17 00:00:00 2001 From: "pius.lee" Date: Mon, 8 Jun 2015 19:54:21 +0900 Subject: [PATCH] [messaging] replace free() to email_free_mail_data() Change-Id: Ifc569a2204ca62aa1fb67172022800c0d87cdf80 --- src/messaging/message.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/messaging/message.cc b/src/messaging/message.cc index 975f6781..7d43e8f2 100755 --- a/src/messaging/message.cc +++ b/src/messaging/message.cc @@ -516,7 +516,7 @@ PlatformResult Message::convertPlatformEmail(std::shared_ptr message, if(!mail_data->file_path_plain) { LoggerE("Plain Body file is NULL."); - free(mail_data); + email_free_mail_data(&mail_data, 1); mail_data = NULL; return PlatformResult(ErrorCode::UNKNOWN_ERR, "Plain Body file is NULL."); } @@ -529,7 +529,7 @@ PlatformResult Message::convertPlatformEmail(std::shared_ptr message, if(!mail_data->file_path_html) { LoggerE("Html Body file is NULL."); - free(mail_data); + email_free_mail_data(&mail_data, 1); mail_data = NULL; return PlatformResult(ErrorCode::UNKNOWN_ERR, "Html Body file is NULL."); } @@ -541,7 +541,7 @@ PlatformResult Message::convertPlatformEmail(std::shared_ptr message, if(!mail_data->file_path_html) { LoggerE("Plain Body file is NULL."); - free(mail_data); + email_free_mail_data(&mail_data, 1); mail_data = NULL; return PlatformResult(ErrorCode::UNKNOWN_ERR, "Plain Body file is NULL."); } -- 2.34.1