Re: Hi!, Buffers and memory
- From: Dan Winship <danw gnome org>
- To: Daniel Morales <daniminas gmail com>
- Cc: libsoup-list gnome org
- Subject: Re: Hi!, Buffers and memory
- Date: Thu, 28 Jun 2007 16:01:00 -0400
Daniel Morales wrote:
> Hi all.. I'm Daniel from Uruguay
>
> i'm strarting with libsoup, makeing some POST/GET asynchronously using
> callbacks like:
>
> static void mi_cb (SoupMessage *msg, gpointer user_data);
>
> After use the: msg-> response.body... i've to free something?..
No. If you're using the asynchronous API, you don't need to free
anything; libsoup will free the message and its contents when it's done
with it.
If you use the synchronous API (soup_session_send_message() instead of
soup_session_queue_message()), you do need to free the message (with
g_object_unref()) when you are done with it.
-- Dan
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]