more places where display can be nil

This commit is contained in:
rsc 2005-07-13 03:56:21 +00:00
parent 2ec48bbca3
commit ca63c078d9
3 changed files with 3 additions and 3 deletions

View file

@ -196,7 +196,7 @@ _freeimage1(Image *i)
Display *d;
Image *w;
if(i == 0)
if(i == 0 || i->display == 0)
return 0;
/* make sure no refresh events occur on this if we block in the write */
d = i->display;