summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-28 22:18:30 +0000
committerpuppetmaster <puppetmaster>2005-07-28 22:18:30 +0000
commit491bfa6ca1bac5934ea99789f3663474c9f35626 (patch)
tree11a53a65119b4b05571d3cf205a24f2fd7039af8
parentadding wrapper implementation (diff)
downloadelock-491bfa6ca1bac5934ea99789f3663474c9f35626.tar.xz
fix for allocation
-rw-r--r--ecore/src/lib/ecore_x/ecore_x_screensaver.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x_screensaver.c b/ecore/src/lib/ecore_x/ecore_x_screensaver.c
index c0dcc05..403ba3b 100644
--- a/ecore/src/lib/ecore_x/ecore_x_screensaver.c
+++ b/ecore/src/lib/ecore_x/ecore_x_screensaver.c
@@ -9,23 +9,27 @@
#endif
-XScreenSaverInfo ecore_x_screensaver_get_alloc_info(void)
+XScreenSaverInfo
+*ecore_x_screensaver_get_alloc_info(void)
{
- XScreenSaverInfo info;
- Ecore_X_Window root;
-
- root = DefaultRootWindow(_ecore_x_disp);
-
- if (!XScreenSaverQueryInfo (_ecore_x_disp,root,info))
- return info;
- else
- return NULL;
+ XScreenSaverInfo info;
+ Ecore_X_Window root;
+
+ info = XScreenSaverAllocInfo ();
+
+ root = DefaultRootWindow(_ecore_x_disp);
+
+ if (!XScreenSaverQueryInfo(_ecore_x_disp, root, info))
+ return info;
+ else
+ return NULL;
}
-void ecore_x_screensaver_free_alloc_info(XScreenSaverQueryInfo info_to_free)
+void
+ecore_x_screensaver_free_alloc_info(XScreenSaverQueryInfo info)
{
- XFree(info_to_free);
- return ;
+ XFree(info);
+ return;
}
/*
* FIXME