Commit f6a537cbfa2cd01dce08e05b69a7f6281e6d0e68

Sam Lantinga 2018-09-17T11:35:24

Store the API device refcount on the device itself, so if the device is disconnected and we have multiple application references to it, we only free it once.