[seed] xorg module - close display after using it
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] xorg module - close display after using it
- Date: Wed, 30 Nov 2011 14:53:00 +0000 (UTC)
commit 730b0e62854204175dd248e7ae61306348d4d882
Author: Alan Knowles <alan akbkhome com>
Date: Wed Nov 30 22:52:49 2011 +0800
xorg module - close display after using it
modules/xorg/seed-xorg.c | 4 +++-
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]