diff options
author | Federico Mena Quintero <federico@ximian.com> | 2002-09-27 22:06:47 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2002-09-27 22:06:47 +0000 |
commit | 743a039cd14ca7e94f2211aa516112890444a3eb (patch) | |
tree | d540f38c87bcdce8990e81950421c815498fc286 /gdk-pixbuf/io-ico.c | |
parent | 8cec022f3f36323de511bea79f5a16c785584c14 (diff) | |
download | gtk+-743a039cd14ca7e94f2211aa516112890444a3eb.tar.gz |
Free the context if we cannot allocate the HeaderBuf.
2002-09-27 Federico Mena Quintero <federico@ximian.com>
* io-ico.c (gdk_pixbuf__ico_image_begin_load): Free the context if
we cannot allocate the HeaderBuf.
Diffstat (limited to 'gdk-pixbuf/io-ico.c')
-rw-r--r-- | gdk-pixbuf/io-ico.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c index cb291dd13f..d54e4103e4 100644 --- a/gdk-pixbuf/io-ico.c +++ b/gdk-pixbuf/io-ico.c @@ -458,6 +458,7 @@ gdk_pixbuf__ico_image_begin_load(ModuleSizeFunc size_func, context->HeaderSize = 54; context->HeaderBuf = g_try_malloc(14 + 40 + 4*256 + 512); if (!context->HeaderBuf) { + g_free (context); g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, |