Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GObject.Object: Make "Dispose" method virtual again #1182

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

badcel
Copy link
Member

@badcel badcel commented Feb 11, 2025

The virtual keyword got lost by accident during the implementation of the new instantiation framework. Custom classes want to be able to plug into the "Dispose" call of GObject.Object otherwise the custom "Dispose" would eventually not be executed if the method is marked with the "new" keyword.

  • I agree that my contribution may be licensed either under MIT or any version of LGPL license.

The virtual keyword got lost by accident during the implementation of the new instantiation framework. Custom classes want to be able to plug into the "Dispose" call of GObject.Object otherwise the custom "Dispose" would eventually not be executed if the method is marked with the "new" keyword.
@badcel badcel force-pushed the object-restore-virtual-dispose-method branch from f565094 to 6c67561 Compare February 11, 2025 21:03
@badcel badcel merged commit fb71c60 into main Feb 11, 2025
3 checks passed
@badcel badcel deleted the object-restore-virtual-dispose-method branch February 11, 2025 21:13
@badcel badcel added this to the 0.6.4 milestone Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant