I have a question about SerialDeviceEnumerator. Since it is mentioned here A LOT, I think (hope) I can ask it in this forum.

The enumerator object gets created automatically using the static instance() method, which creates an instance of the object and remembers this in SerialDeviceEnumerator::self.

However, when does this object ever gets deleted ? At the end of the program, the destructor for SerialDeviceEnumerator::self will NOT be called because it is just a pointer, not an instance.

I don't see anything in the enumerator example to delete the instance either.

Best regards,
Marc