Re: what to g_free and what to not.



On Mon, 21 Aug 2000, Oskar Liljeblad wrote:

> On Monday, August 21, 2000 at 11:33, Owen Taylor wrote:
> > > 
> > > It's only the functions that return gchar* that I have checked. There
> > > are others (for example those that retur gchar**) which need to checked
> > > too.
> > 
> > It's a known, much debated, issue. We certainly can't start
> > changing the existing functions to behave differently! So the
> > question is coming up with some sort of solution that allows
> > us to have a consistent way of doing things in the future.
> 
> So the solution for me right now is to check every function returning
> a gchar*? I'm willing to do that, if it has not been done already,
> and if the result (a list of functions and if they dup or not) was
> made part of the GTK documentation.

  Also you can convert all 'gchar*' that can't be freed to 'const gchar*'
or some synthesized type like 'cgchar*' etc in the headers.

> Oskar Liljeblad (osk@hem.passagen.se)
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
> 

 Best regards,
  -Vlad






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