(IOHidManager) Fix adapter leak

This commit is contained in:
Twinaphex 2016-05-24 14:01:46 +02:00
parent 4e74a990d4
commit c1e82d3f1a

View File

@ -248,8 +248,10 @@ static void iohidmanager_hid_device_remove(void *data,
memset(hid->axes[adapter->slot], 0, sizeof(hid->axes));
pad_connection_pad_deinit(&hid->slots[adapter->slot], adapter->slot);
free(adapter);
}
if (adapter)
free(adapter);
}
static int32_t iohidmanager_hid_device_get_int_property(