diff options
Diffstat (limited to 'src/wallpaper.c')
-rw-r--r-- | src/wallpaper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallpaper.c b/src/wallpaper.c index 3e19c41..9327d74 100644 --- a/src/wallpaper.c +++ b/src/wallpaper.c @@ -465,8 +465,9 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, } free(path); } - free(fehbg); } + + if (fehbg) free(fehbg); /* create new display, copy pixmap to new display */ disp2 = XOpenDisplay(NULL); |