The source project of this merge request has been removed.
Free device the right way
the device_arr contains a PurMmDevice. Not an object. Add a free function for that and use it.
Also, add a ref on object when adding to device to avoid pointing to an invalid object when it is removed.
Fixes chatty#355 (closed)