summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Knowles <alan@akbkhome.com>2011-11-30 14:52:49 (GMT)
committerAlan Knowles <alan@akbkhome.com>2011-11-30 14:52:49 (GMT)
commit730b0e62854204175dd248e7ae61306348d4d882 (patch)
tree22388a27c61157497cc7d851cb973e4a9919d1cb
parent67484737433bcf5263194d84ae3f0c2526cccc3d (diff)
downloadseed-730b0e62854204175dd248e7ae61306348d4d882.tar.gz
seed-730b0e62854204175dd248e7ae61306348d4d882.tar.xz
xorg module - close display after using it
-rw-r--r--modules/xorg/seed-xorg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/xorg/seed-xorg.c b/modules/xorg/seed-xorg.c
index af42fc5..75cc764 100644
--- a/modules/xorg/seed-xorg.c
+++ b/modules/xorg/seed-xorg.c
@@ -46,8 +46,10 @@ SeedValue seed_xorg_screensaverinfo_get_idletime(SeedContext ctx,
if (display != NULL) {
XScreenSaverQueryInfo(display, DefaultRootWindow(display), info);
- rc = info->idle;
+ rc = info->idle;
+ XCloseDisplay(display);
}
+
XFree(info);
return seed_value_from_int(ctx, rc, exception);