Re: Freeing gerrors



I think we should go with the way g_utf8_* functions and others are
done: provide a location to store an eventual error (GError **) or NULL
if error should be ignored.

--
Joaquim Rocha

On Tue, 2010-07-13 at 09:30 +0200, Juan A. Suarez Romero wrote:
> Hi.
> 
> 
> In most Grilo's callbacks, there is a GError parameter set when there is
> an error.
> 
> Who should free that error? Client in the callback or caller after
> executing the callback?
> 
> For what I know, standard way is that client must free the error in the
> callback. But I would like to be sure before digging the code and making
> sure it is always done in that way.
> 
> 	J.A.
> 
> 
> _______________________________________________
> grilo-list mailing list
> grilo-list gnome org
> http://mail.gnome.org/mailman/listinfo/grilo-list

Attachment: signature.asc
Description: This is a digitally signed message part



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