Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@robert-ancell
Copy link
Contributor

Remove empty dispose methods and convert finalize methods to dispose for consistency.

Remove empty dispose methods and convert finalize methods to dispose for consistency.
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM stamp from a Japanese personal seal

Just for my own GTK knowledge, would you say the following is a good summary of dispose vs finalize?

https://mail.gnome.org/archives/gtk-devel-list/2004-July/msg00151.html

@robert-ancell
Copy link
Contributor Author

LGTM stamp from a Japanese personal seal

Just for my own GTK knowledge, would you say the following is a good summary of dispose vs finalize?

https://mail.gnome.org/archives/gtk-devel-list/2004-July/msg00151.html

That's also my understanding, however if you use g_clear_object/g_clear_pointer then you can safely remove everything in the dispose method (because this ensures they are only freed once) and this makes things a lot simpler than having to have both.

@robert-ancell robert-ancell merged commit cdb6d26 into flutter:main Oct 13, 2024
@robert-ancell robert-ancell deleted the linux-dispose-fixes branch October 13, 2024 20:40
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 13, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 13, 2024
flutter/engine@8fdc6a8...adc5909

2024-10-13 robert.ancell@canonical.com Make FlRenderable interface (flutter/engine#55763)
2024-10-13 robert.ancell@canonical.com Fix dispose methods that didn't chain the parent. (flutter/engine#55794)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
Remove empty dispose methods and convert finalize methods to dispose for
consistency.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants