projects
/
framework
/
connectivity
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a62cd9
)
device: Do not open code the records freeing routine
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 15 Feb 2013 15:25:58 +0000
(16:25 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 15 Feb 2013 15:28:10 +0000
(16:28 +0100)
Use near_ndef_records_free instead.
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
3d52a69
..
29cb671
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-61,15
+61,10
@@
static GSList *driver_list = NULL;
static void free_device(gpointer data)
{
struct near_device *device = data;
- GList *list;
DBG("device %p", device);
- for (list = device->records; list; list = list->next) {
- struct near_ndef_record *record = list->data;
-
- __near_ndef_record_free(record);
- }
+ near_ndef_records_free(device->records);
g_list_free(device->records);
g_free(device->path);