diff options
Diffstat (limited to 'src')
-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); } |