Re: Gtk::TreeView::get_cursor() is leaking?



On Mon, 2007-03-12 at 18:46 +0300, Andrew E. Makeev wrote:
> В Пнд, 12/03/2007 в 15:56 +0100, Murray Cumming пишет:
> > On Mon, 2007-03-12 at 17:45 +0300, Andrew E. Makeev wrote:
> > > 
> > > void TreeView::get_cursor(TreeModel::Path& path, TreeViewColumn*& focus_column)
> > > {
> > >   GtkTreePath* pTreePath = 0;
> > >   GtkTreeViewColumn* pTreeViewColumn = 0;
> > >   gtk_tree_view_get_cursor(gobj(), &pTreePath, &pTreeViewColumn);
> > > 
> > >   path = TreeModel::Path(pTreePath, true);
> > >   focus_column = Glib::wrap(pTreeViewColumn);
> > > }
> > > 
> > > Since TreeModel::Path() constructor takes copy of the GtkTreePath, we
> > > may just add at the end of the get_cursor() function:
> > > 
> > > gtk_tree_path_free( pTreePath );
> > > 
> > Your logic makes sense to me. Please do try patching it and, if it fixes
> > things, please submit it in bugzilla.
> > 
> 
> Just a small problem... I cannot access CVS:
> 
> cvs -d :pserver:anonymous anoncvs gnome org:/cvs/gnome login 
> (hit return as the password)
> cvs -z3 -d :pserver:anonymous anoncvs gnome org:/cvs/gnome co gtkmm
> 
> it says - "Unknown host anoncvs.gnome.org.".

GNOME has switched to svn. See http://svn.gnome.org

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]