aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad_close_device.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libgamepad_close_device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgamepad_close_device.c b/libgamepad_close_device.c
index 3b00149..273c7f8 100644
--- a/libgamepad_close_device.c
+++ b/libgamepad_close_device.c
@@ -11,14 +11,22 @@ libgamepad_close_device(struct libgamepad_device *device)
close(device->fd);
if (device->internals->dev)
libevdev_free(device->internals->dev);
+ free(device->internals->absinfo);
+ free(device->internals->buttons);
free(device->internals);
device->internals = NULL;
}
free(device->buttons);
free(device->absolute_axes);
free(device->relative_axes);
+ free(device->name);
+ free(device->unique_id);
+ free(device->physical_location);
device->buttons = NULL;
device->absolute_axes = NULL;
device->relative_axes = NULL;
+ device->name = NULL;
+ device->unique_id = NULL;
+ device->physical_location = NULL;
}
}