This PR improves Device Renderer destruction, in hopes of it getting garbage-collected when we don't need it anymore.
Most event handlers lambda were moved to class methods, so that they could be properly removed, and most plugins had destroy functions added, and called in the Device Renderer destroy.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This PR improves Device Renderer destruction, in hopes of it getting garbage-collected when we don't need it anymore.
Most event handlers lambda were moved to class methods, so that they could be properly removed, and most plugins had
destroy
functions added, and called in the Device Rendererdestroy
.Type of change
Checklist