summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();