Re: gdk_pixbuf_loader_write and short files
- From: Havoc Pennington <hp redhat com>
- To: matthiasc poet de
- Cc: gtk-devel-list gnome org
- Subject: Re: gdk_pixbuf_loader_write and short files
- Date: 28 Aug 2001 16:30:27 -0400
Matthias Clasen <matthiasc poet de> writes:
> + retval = gdk_pixbuf_loader_load_module (loader, NULL, error);
>
We need to be sure we always return without reusing "error" here.
i.e. if there's an error stop_load should not be called.
This probably means you need a temporary error variable so you can
check whether an error occurred, even if error == NULL.
Because if the app passes in NULL to ignore errors, control flow
should not be affected.
(Rationale is in the GError docs if you're interested.)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]