[gimp/gimp-2-10] plug-ins: fix cherry picking of commit fb38e42
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: fix cherry picking of commit fb38e42
- Date: Fri, 5 Mar 2021 20:18:05 +0000 (UTC)
commit f4420f51a017fc29e32b145f979000997490e505
Author: Jacob Boerema <jgboerema gmail com>
Date: Fri Mar 5 15:16:27 2021 -0500
plug-ins: fix cherry picking of commit fb38e42
plug-ins/file-faxg3/faxg3.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/file-faxg3/faxg3.c b/plug-ins/file-faxg3/faxg3.c
index 905075a725..07ef436c67 100644
--- a/plug-ins/file-faxg3/faxg3.c
+++ b/plug-ins/file-faxg3/faxg3.c
@@ -273,7 +273,7 @@ load_image (const gchar *filename,
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Could not create buffer to process image data."));
- return NULL;
+ return -1;
}
bp = &bitmap[row * MAX_COLS / 8];
@@ -540,7 +540,7 @@ emitgimp (gint hcol,
_("Invalid image dimensions (%d x %d). "
"Image may be corrupt."),
hcol, row);
- return NULL;
+ return -1;
}
image_ID = gimp_image_new (hcol, row, GIMP_GRAY);
@@ -548,7 +548,7 @@ emitgimp (gint hcol,
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Could not create image."));
- return NULL;
+ return -1;
}
gimp_image_set_filename (image_ID, filename);
@@ -573,8 +573,8 @@ emitgimp (gint hcol,
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Could not create buffer to process image data."));
g_object_unref (buffer);
- gimp_image_delete(image);
- return NULL;
+ gimp_image_delete(image_ID);
+ return -1;
}
xx = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]