diff options
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; |