From: Jan Djärv Date: Wed, 12 Feb 2014 07:50:24 +0000 (+0100) Subject: * image.c (pbm_load): Set to NO_PIXMAP on error. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~19 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a9a61c77b3effd0e00b20ff714e430ee6b2a937a;p=emacs.git * image.c (pbm_load): Set to NO_PIXMAP on error. Fixes: debbugs:16683 --- diff --git a/src/ChangeLog b/src/ChangeLog index 6ba2a935b51..bd498c59f1a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-02-12 Marcus Karlsson (tiny change) + + * image.c (pbm_load): Set to NO_PIXMAP on error (Bug#16683). + 2014-02-12 Lars Ingebrigtsen * buffer.c (syms_of_buffer): Doc clarification (bug#9981). diff --git a/src/image.c b/src/image.c index 706745fb479..e53ad0b4a30 100644 --- a/src/image.c +++ b/src/image.c @@ -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; }