diff options
author | rsc <devnull@localhost> | 2006-01-28 23:45:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-01-28 23:45:53 +0000 |
commit | e4c74b87b6798b5255a3b794276cf83fea19b36d (patch) | |
tree | 847388db936871ee168f8eb9c14d2acd67c99e12 /src/libdraw | |
parent | 784d65506702aab589d768a5db8113aca11dd6de (diff) | |
download | plan9port-e4c74b87b6798b5255a3b794276cf83fea19b36d.tar.gz plan9port-e4c74b87b6798b5255a3b794276cf83fea19b36d.tar.bz2 plan9port-e4c74b87b6798b5255a3b794276cf83fea19b36d.zip |
do not die in freeimage(0) when screen==0
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libdraw/alloc.c b/src/libdraw/alloc.c index 53e9605b..fb43351d 100644 --- a/src/libdraw/alloc.c +++ b/src/libdraw/alloc.c @@ -231,9 +231,10 @@ freeimage(Image *i) { int ret; + if(i == nil) + return; if(i == screen) abort(); - ret = _freeimage1(i); free(i); return ret; |