GNOME Bugzilla – Bug 644039
Do not leak python references when using the gobject.property() helper.
Last modified: 2011-03-07 16:19:08 UTC
The previous behaviour caused references to be held forever, preventing the objects from ever being finalized.
Created attachment 182630 [details] [review] Do not leak python references when using the gobject.property() helper. Since this helper was storing plain references in a long-lived dict, the refcount for the instances would never drop to zero, and so they would never get finalized.
Created attachment 182631 [details] [review] Do not leak python references when using the gobject.property() helper. Since this helper was storing plain references in a long-lived dict, the refcount for the instances would never drop to zero, and so they would never get finalized. This fixes the previous patch and adds a new test.
Comment on attachment 182631 [details] [review] Do not leak python references when using the gobject.property() helper. looks good
Attachment 182631 [details] pushed as 7bece91 - Do not leak python references when using the gobject.property() helper.