+
Skip to content

Conversation

badcel
Copy link
Member

@badcel badcel commented May 10, 2025

The explicit disconnect of a closure only happend if an object instance got disposed manually by a user. By moving the code into the the ObjectHandle the signals are disconnected in all cases.

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

@badcel badcel linked an issue May 10, 2025 that may be closed by this pull request
The explicit disconnect of a closure only happend if an object instance got disposed manually by a user. By moving the code into the the ObjectHandle the signals are disconnected in all cases.
@badcel badcel force-pushed the move-closure-handling-to-safehandle branch from 0e9d179 to 088ee14 Compare May 11, 2025 19:16
@badcel badcel marked this pull request as ready for review May 11, 2025 19:35
@badcel badcel merged commit 885b6d0 into main May 11, 2025
3 checks passed
@badcel badcel deleted the move-closure-handling-to-safehandle branch May 11, 2025 19:35
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.

GObject.Closure call of garbage collected instance

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载