Re: When to g_free()



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




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