avoid nil freeimage

This commit is contained in:
rsc 2005-12-29 20:59:24 +00:00
parent 0ace33a415
commit 297cded760

View file

@ -126,8 +126,10 @@ closedisplay(Display *disp)
free(disp->devdir);
free(disp->windir);
freeimage(disp->white);
freeimage(disp->black);
if(disp->white)
freeimage(disp->white);
if(disp->black)
freeimage(disp->black);
free(disp);
}