Skip to content
Snippets Groups Projects
Commit 120410a4 authored by Daniel Lockyer's avatar Daniel Lockyer
Browse files

src/wallpaper.c: free up some data allocated by X.

The if statements are needed because we cannot pass a NULL pointer to
XFree.
parent 3cc26689
No related branches found
No related tags found
No related merge requests found
...@@ -550,6 +550,13 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, ...@@ -550,6 +550,13 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
} }
} }
} }
if (data_root)
XFree(data_root);
if (data_esetroot)
XFree(data_esetroot);
/* This will locate the property, creating it if it doesn't exist */ /* This will locate the property, creating it if it doesn't exist */
prop_root = XInternAtom(disp2, "_XROOTPMAP_ID", False); prop_root = XInternAtom(disp2, "_XROOTPMAP_ID", False);
prop_esetroot = XInternAtom(disp2, "ESETROOT_PMAP_ID", False); prop_esetroot = XInternAtom(disp2, "ESETROOT_PMAP_ID", False);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment