diff options
author | rsc <devnull@localhost> | 2005-12-29 20:59:24 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-12-29 20:59:24 +0000 |
commit | 297cded760c755079e9f22d22fa37b864bf88a51 (patch) | |
tree | edc506387aafa85fbf26b180546b2e25b515d5bb /src/libdraw | |
parent | 0ace33a41539dedfee1bd73e124fd9ca574f43b1 (diff) | |
download | plan9port-297cded760c755079e9f22d22fa37b864bf88a51.tar.gz plan9port-297cded760c755079e9f22d22fa37b864bf88a51.tar.bz2 plan9port-297cded760c755079e9f22d22fa37b864bf88a51.zip |
avoid nil freeimage
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libdraw/init.c b/src/libdraw/init.c index 2357f0ef..c01298d5 100644 --- a/src/libdraw/init.c +++ b/src/libdraw/init.c @@ -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); } |