Re: When to g_free()



On Thu, 15 Jun 2000, you 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.


Thanks, I guess I'm leaking gallons of memory in every function.  But hey,
that's what betas are for, eh? :)

Matthew




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