After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663694 - GtkTreeViewAccessibleCellInfo are leaked
GtkTreeViewAccessibleCellInfo are leaked
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: 663387 663540
 
 
Reported: 2011-11-09 13:29 UTC by Guillaume Desmottes
Modified: 2011-11-10 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtktreeviewaccessible: factor out cell_info_free() (1.46 KB, patch)
2011-11-09 13:36 UTC, Guillaume Desmottes
none Details | Review
gtktreeviewaccessible: use a value_destroy_func with the cell_info_by_index hash (1.34 KB, patch)
2011-11-09 13:36 UTC, Guillaume Desmottes
none Details | Review

Description Guillaume Desmottes 2011-11-09 13:29:48 UTC
I noticed a GtkTreeModel leak in some of my code. After loads of digging I discovered it was because of GtkTreeViewAccessibleCellInfo being leaked (they have a GtkTreeRowReference which keep a ref on the model).
Comment 1 Guillaume Desmottes 2011-11-09 13:36:31 UTC
Created attachment 201061 [details] [review]
gtktreeviewaccessible: factor out cell_info_free()
Comment 2 Guillaume Desmottes 2011-11-09 13:36:34 UTC
Created attachment 201062 [details] [review]
gtktreeviewaccessible: use a value_destroy_func with the cell_info_by_index hash

This ensures that we don't leak any GtkTreeViewAccessibleCellInfo when
re-inserting a new one with the same key.
Comment 3 Benjamin Otte (Company) 2011-11-10 13:53:04 UTC
pushed to master.

Will also push to 3.2 branch after some more fixes.