GLWpfControl icon indicating copy to clipboard operation
GLWpfControl copied to clipboard

Improve resource disposal of `GLWpfControl`

Open 4nonym0us opened this issue 5 months ago • 0 comments

Changes

GLWpfControl.OnUnloaded() was updated to only release resorces if the control hasn't been disposed yet.

Behavior

Before

OnUnloaded could be fired after the disposal of the control.

After

Resources are being released in OnUnloaded only when the control is active (_isStarted is true, which is basically from the moment it was started to the moment it's disposed).

4nonym0us avatar Oct 03 '24 09:10 4nonym0us