Re: memory cleanup

Dan Winship <[email protected]> Thu, 14 Oct 2004 09:18:07 -0400
Newsgroups gmane.comp.gnome.ximian.soup
Message-ID <[email protected]>
On Wed, 2004-10-13 at 10:29 -0700, [email protected] wrote:
> How do I delete any libsoup object when I am finished with it
> such as SoupMessage or SoupSession.

They are GObjects, so use g_object_unref(). However, if you are using
SoupSessionAsync, you don't normally have to unref the SoupMessages
yourself. They will be automatically unreffed after the final callback
is invoked. That only applies to SoupMessage though, and only if you're
using SoupSessionAsync.

-- Dan

_______________________________________________
Soup-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/soup-list