From: pius.lee Date: Mon, 8 Jun 2015 10:54:21 +0000 (+0900) Subject: [messaging] replace free() to email_free_mail_data() X-Git-Tag: submit/tizen_mobile/20150609.113445^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aec17abbca1ac8131bb21ec1b309e76e74ed2cdd;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [messaging] replace free() to email_free_mail_data() Change-Id: Ifc569a2204ca62aa1fb67172022800c0d87cdf80 --- 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."); }