[all] fix numerous memory leaks at application shutdown

This commit is contained in:
Geoffrey McRae
2021-01-24 19:39:00 +11:00
parent 086f73721d
commit 4c1893fe20
5 changed files with 81 additions and 13 deletions

View File

@@ -261,6 +261,7 @@ static bool x11GetProp(LG_DSProperty prop, void *ret)
maxSamples = samples;
}
XFree(visuals);
XCloseDisplay(dpy);
*(int*)ret = maxSamples;