Re: [Evolution-hackers] Possible memory leak
- From: Jose Dapena Paz <jdapena igalia com>
- To: Philip Van Hoof <spam pvanhoof be>
- Cc: Matthew Barnes <mbarnes redhat com>, tinymail-devel-list <tinymail-devel-list gnome org>, Jeffrey Stedfast <fejj novell com>, Evolution Hackers <evolution-hackers gnome org>
- Subject: Re: [Evolution-hackers] Possible memory leak
- Date: Tue, 15 Jan 2008 11:55:20 +0100
El lun, 14-01-2008 a las 14:33 +0100, Philip Van Hoof escribió:
> I think this needs to be something like this:
>
> GSList *item = cc->status_stack;
> cc->status_stack = g_slist_remove_link(cc->status_stack, item);
> g_slist_free (item);
Or just use g_slist_delete_link:
cc->status_stack = g_slist_delete_link (cc->status_stack, cc->status_stack);
AFAIK it frees the list node.
--
Jose Dapena Paz <jdapena igalia com>
Igalia
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]