Skip to content

Improve resource disposal of GLWpfControl#141

Closed
4nonym0us wants to merge 1 commit intoopentk:masterfrom
4nonym0us:bugfix/improved-glwpfcontrol-disposal
Closed

Improve resource disposal of GLWpfControl#141
4nonym0us wants to merge 1 commit intoopentk:masterfrom
4nonym0us:bugfix/improved-glwpfcontrol-disposal

Conversation

@4nonym0us
Copy link

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).

@NogginBops NogginBops added bug Something isn't working 4.0 labels Oct 31, 2024
@NogginBops NogginBops added this to the 4.3.3 milestone Oct 31, 2024
@NogginBops
Copy link
Member

Thanks for creating this PR, I've opened up #143 which fixes this issue and does some cleanup on the code.
I'm going to be merging that PR and closing this PR. I'll add you to the credits of the 4.3.3 anyways. :)

@NogginBops NogginBops closed this Oct 31, 2024
@4nonym0us 4nonym0us deleted the bugfix/improved-glwpfcontrol-disposal branch October 31, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants