summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xdpyinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 5715590..039127d 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -424,6 +424,7 @@ Bool IsPrintScreen(Screen *s)
pscreens = XpQueryScreens(dpy, &pscrcount);
for( i = 0 ; (i < pscrcount) && pscreens ; i++ ) {
if (s == pscreens[i]) {
+ XFree(pscreens);
return True;
}
}