fix prevent bugs
authorYoungjae Shin <yj99.shin@samsung.com>
Tue, 22 Oct 2013 08:42:14 +0000 (17:42 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 22 Oct 2013 08:42:14 +0000 (17:42 +0900)
packaging/ug-nfc-efl.spec
ug-nfc-share-efl/src/ug-nfc-share-main.c

index 188c5a50ee7bd280e3fcc7526ec04b3ef8d9ffbe..8ee5f157bed012db7a2cd6475176192b8fb90461 100644 (file)
@@ -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
index 9e31c152a981f265d9819ffd1f18f105bdfedf5b..1c6b39df460531dd6e4edcb46108d8dad033b32e 100644 (file)
@@ -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();