Re: When to g_free()
- From: Andrea Frome <andrea bluemug com>
- To: gtk-list gnome org
- Subject: Re: When to g_free()
- Date: Thu, 15 Jun 2000 12:47:29 -0700
How do we tell if we're dealing with a legacy function?
I have a similar question with gtk_file_selection_get_filename(). It
appears that it's returning a pointer from an internal structure
that is freed when the file selection widget is destroyed, but I'm
not positive.
Thanks,
ALf
On Thu, Jun 15, 2000 at 03:23:07PM -0400, Havoc Pennington wrote:
>
> Matthew <matthew@mattshouse.com> writes:
> > Should I be g_free()ing my gtk_editable_get_chars()? Is there a rule of thumb
> > to follow that will make it easier to figure out what to free and what doesn't
> > need to be freed?
> >
>
> Returned strings need to be freed, except for legacy functions that
> don't follow the convention.
>
> Havoc
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]