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 417539 - Memory leak in Gtk::TreeView::get_cursor()
Memory leak in Gtk::TreeView::get_cursor()
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: TreeView
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-03-12 17:29 UTC by Andrew E. Makeev
Modified: 2007-03-23 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixes get_cursor() in treeview.ccg (809 bytes, patch)
2007-03-12 17:30 UTC, Andrew E. Makeev
none Details | Review

Description Andrew E. Makeev 2007-03-12 17:29:20 UTC
Using valgrind I found that function Gtk::TreeView::get_cursor() has memory leak for GtkTreePath pointer.
Comment 1 Andrew E. Makeev 2007-03-12 17:30:55 UTC
Created attachment 84438 [details] [review]
Patch fixes get_cursor() in treeview.ccg
Comment 2 Murray Cumming 2007-03-23 16:12:44 UTC
Committed. Thanks.

I changed it to use true as the second TreePath::wrap() argument, to avoid an unnecessary copy.