mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
avoid nil freeimage
This commit is contained in:
parent
0ace33a415
commit
297cded760
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue