* image.c (pbm_load): Set to NO_PIXMAP on error.

Fixes: debbugs:16683
This commit is contained in:
Jan Djärv 2014-02-12 08:50:24 +01:00
parent 5af9fbadd1
commit a9a61c77b3
2 changed files with 5 additions and 0 deletions

View 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).

View 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;
}