Skip to content

application: Unset the registered state after shutting down

An application that has been shut down is still marked as registered even if its implementation has been already destroyed.

This may lead to unguarded crashes when calling functions that have assumptions for being used with registered applications.

So, when an application is registered, mark it as unregistered just before destroying its implementation and after being shut down, so that we follow the registration process in reversed order.

Added tests

Merge request reports