summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Shin <yj99.shin@samsung.com>2013-10-22 17:42:14 +0900
committerYoungjae Shin <yj99.shin@samsung.com>2013-10-22 17:42:14 +0900
commitf8e515af43df41060eaf9947906e21a9dbb59a9e (patch)
tree3f42e82d3cd499bcb2b6715b3edb05b0a06a50ff
parent03ce3e583214f3e7854d3d0d612535edb1b30ed1 (diff)
downloadug-nfc-efl-f8e515af43df41060eaf9947906e21a9dbb59a9e.tar.gz
ug-nfc-efl-f8e515af43df41060eaf9947906e21a9dbb59a9e.tar.bz2
ug-nfc-efl-f8e515af43df41060eaf9947906e21a9dbb59a9e.zip
fix prevent bugs
-rw-r--r--packaging/ug-nfc-efl.spec2
-rw-r--r--ug-nfc-share-efl/src/ug-nfc-share-main.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index 188c5a5..8ee5f15 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -4,7 +4,7 @@
Name: ug-nfc-efl
Summary: UI gadget about the nfc
-Version: 0.0.8
+Version: 0.0.9
Release: 0
Group: TO_BE/FILLED_IN
License: Flora Software License
diff --git a/ug-nfc-share-efl/src/ug-nfc-share-main.c b/ug-nfc-share-efl/src/ug-nfc-share-main.c
index 9e31c15..1c6b39d 100644
--- a/ug-nfc-share-efl/src/ug-nfc-share-main.c
+++ b/ug-nfc-share-efl/src/ug-nfc-share-main.c
@@ -796,6 +796,13 @@ static void __ug_nfc_share_destroy(ui_gadget_h ug, service_h service, void *priv
if (ug_data == NULL)
return;
+ if (ug_data->current_ndef)
+ {
+ if (nfc_ndef_message_destroy(ug_data->current_ndef) != NFC_ERROR_NONE)
+ UG_NFC_SHARE_DEBUG_ERR("nfc_ndef_message_destroy failed");
+ ug_data->current_ndef = NULL;
+ }
+
/* unset callback */
ug_nfc_unset_nfc_callback();