Commit d5b91835 authored by Martin Nordholts's avatar Martin Nordholts

Bail out if we fail to create a dest buffer.

* app/base/temp-buf.c (temp_buf_copy): Bail out if we fail to
create a dest buffer.

svn path=/trunk/; revision=27946
parent 6584aba5
2009-01-25 Martin Nordholts <martinn@svn.gnome.org>
* app/base/temp-buf.c (temp_buf_copy): Bail out if we fail to
create a dest buffer.
2009-01-25 Michael Natterer <mitch@gimp.org>
* app/core/Makefile.am
......
......@@ -178,6 +178,9 @@ temp_buf_copy (TempBuf *src,
if (! dest)
dest = temp_buf_new (src->width, src->height, src->bytes, 0, 0, NULL);
if (! dest)
return NULL;
if (src->bytes != dest->bytes)
{
if (src->bytes == 4 && dest->bytes == 2) /* RGBA -> GRAYA */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment