aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c
index 9beb35c484b..0242b502581 100644
--- a/src/image.c
+++ b/src/image.c
@@ -507,12 +507,14 @@ image_create_bitmap_from_file (struct frame *f, Lisp_Object file)
507#endif 507#endif
508 508
509#ifdef HAVE_PGTK 509#ifdef HAVE_PGTK
510 GError *err; 510 GError *err = NULL;
511 ptrdiff_t id; 511 ptrdiff_t id;
512 void * bitmap = gdk_pixbuf_new_from_file(SSDATA(file), &err); 512 void * bitmap = gdk_pixbuf_new_from_file(SSDATA(file), &err);
513 513
514 if (!bitmap) 514 if (!bitmap) {
515 g_error_free(err);
515 return -1; 516 return -1;
517 }
516 518
517 id = image_allocate_bitmap_record(f); 519 id = image_allocate_bitmap_record(f);
518 520
@@ -10698,7 +10700,7 @@ non-numeric, there is no explicit limit on the size of images. */);
10698 DEFSYM (Qxbm, "xbm"); 10700 DEFSYM (Qxbm, "xbm");
10699 add_image_type (Qxbm); 10701 add_image_type (Qxbm);
10700 10702
10701#if defined (HAVE_XPM) || defined (HAVE_NS) 10703#if defined (HAVE_XPM) || defined (HAVE_NS) || defined (USE_CAIRO)
10702 DEFSYM (Qxpm, "xpm"); 10704 DEFSYM (Qxpm, "xpm");
10703 add_image_type (Qxpm); 10705 add_image_type (Qxpm);
10704#endif 10706#endif