From: Ji-hoon Jung Date: Mon, 19 Aug 2013 08:19:17 +0000 (+0900) Subject: duplicate target_information in net_nfc_get_current_tag_info_sync X-Git-Tag: accepted/tizen/generic/20140408.093248~7^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d80b3c34e90e40d7e8f69f35877a0dadbc16f348;p=platform%2Fcore%2Fconnectivity%2Fnfc-manager.git duplicate target_information in net_nfc_get_current_tag_info_sync Change-Id: I270f8436d1afde731a6f81099bd873515b3e9241 --- diff --git a/src/clientlib/net_nfc_client_tag.c b/src/clientlib/net_nfc_client_tag.c index 49e0363..4de116e 100755 --- a/src/clientlib/net_nfc_client_tag.c +++ b/src/clientlib/net_nfc_client_tag.c @@ -24,6 +24,7 @@ #include "net_nfc_util_private.h" #include "net_nfc_util_ndef_message.h" #include "net_nfc_client_nfc_private.h" +#include "net_nfc_target_info.h" #ifndef NET_NFC_EXPORT_API #define NET_NFC_EXPORT_API __attribute__((visibility("default"))) @@ -431,7 +432,7 @@ NET_NFC_EXPORT_API net_nfc_error_e net_nfc_get_current_tag_info_sync(net_nfc_tar if (result == NET_NFC_OK) { /* already allocated memory */ - *info = (net_nfc_target_info_h)response.trans_param; + net_nfc_duplicate_target_info((net_nfc_target_info_h)response.trans_param, info); } return result;