gimp r27946 - in trunk: . app/base
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27946 - in trunk: . app/base
- Date: Sun, 25 Jan 2009 19:07:51 +0000 (UTC)
Author: martinn
Date: Sun Jan 25 19:07:51 2009
New Revision: 27946
URL: http://svn.gnome.org/viewvc/gimp?rev=27946&view=rev
Log:
* app/base/temp-buf.c (temp_buf_copy): Bail out if we fail to
create a dest buffer.
Modified:
trunk/ChangeLog
trunk/app/base/temp-buf.c
Modified: trunk/app/base/temp-buf.c
==============================================================================
--- trunk/app/base/temp-buf.c (original)
+++ trunk/app/base/temp-buf.c Sun Jan 25 19:07:51 2009
@@ -178,6 +178,9 @@
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]