]> git.eshelyaron.com Git - emacs.git/commitdiff
* image.c (pbm_load): Set to NO_PIXMAP on error.
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 12 Feb 2014 07:50:24 +0000 (08:50 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 12 Feb 2014 07:50:24 +0000 (08:50 +0100)
Fixes: debbugs:16683
src/ChangeLog
src/image.c

index 6ba2a935b51492f8dd44082de6939eed8ff1615e..bd498c59f1a1f16885576f964dd03de161888e57 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-12  Marcus Karlsson <mk@acc.umu.se> (tiny change)
+
+       * image.c (pbm_load): Set to NO_PIXMAP on error (Bug#16683).
+
 2014-02-12  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * buffer.c (syms_of_buffer): Doc clarification (bug#9981).
index 706745fb479c1ea93fd872aa243871f82026605f..e53ad0b4a30a19b89be2d36bf41e5b164cd161cf 100644 (file)
@@ -5215,6 +5215,7 @@ pbm_load (struct frame *f, struct image *img)
       image_error ("Not a PBM image: `%s'", img->spec, Qnil);
     error:
       xfree (contents);
+      img->pixmap = NO_PIXMAP;
       return 0;
     }