Re: When to g_free()
- From: Matthew <matthew mattshouse com>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-list gnome org
- Subject: Re: When to g_free()
- Date: Thu, 15 Jun 2000 15:13:01 -0500
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]