aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/image.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 078164c5fb9..1a9fd720167 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12005-11-17 Chong Yidong <cyd@stupidchicken.com> 12005-11-17 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * image.c (x_create_bitmap_from_xpm_data): Free attributes on
4 fail.
5
3 * xfaces.c (Qignore_defface): New variable. 6 * xfaces.c (Qignore_defface): New variable.
4 (syms_of_xfaces): Provide `:ignore-defface'. 7 (syms_of_xfaces): Provide `:ignore-defface'.
5 (IGNORE_DEFFACE_P): New macro. 8 (IGNORE_DEFFACE_P): New macro.
diff --git a/src/image.c b/src/image.c
index 1ba1cd197ff..c7bc71ee909 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3737,10 +3737,12 @@ x_create_bitmap_from_xpm_data (f, bits)
3737 rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 3737 rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
3738 bits, &bitmap, &mask, &attrs); 3738 bits, &bitmap, &mask, &attrs);
3739 if (rc != XpmSuccess) 3739 if (rc != XpmSuccess)
3740 return -1; 3740 {
3741 XpmFreeAttributes (&attrs);
3742 return -1;
3743 }
3741 3744
3742 id = x_allocate_bitmap_record (f); 3745 id = x_allocate_bitmap_record (f);
3743
3744 dpyinfo->bitmaps[id - 1].pixmap = bitmap; 3746 dpyinfo->bitmaps[id - 1].pixmap = bitmap;
3745 dpyinfo->bitmaps[id - 1].have_mask = 1; 3747 dpyinfo->bitmaps[id - 1].have_mask = 1;
3746 dpyinfo->bitmaps[id - 1].mask = mask; 3748 dpyinfo->bitmaps[id - 1].mask = mask;