AlarmNotification - Profile not unloaded on restart


while implementing an NotificationProfile i discovered a potential memory leak when restarting a notification profile.
After a change in the profile settings, the profile is correctly shutdown and restarted, but the old profile instance is not gc’ed. The debugger says that it is still referenced from AlarmNotificationManagerImpl#profilesByTypeId. Only way to delete this references is to restart the complete module.

Do i have to unregister the profile somewhere on shutdown, or is this a bug in the api?


I think this is a bug. Thanks for reporting :thumb_left: