diff options
author | puppetmaster <puppetmaster> | 2005-07-28 22:18:30 +0000 |
---|---|---|
committer | puppetmaster <puppetmaster> | 2005-07-28 22:18:30 +0000 |
commit | 491bfa6ca1bac5934ea99789f3663474c9f35626 (patch) | |
tree | 11a53a65119b4b05571d3cf205a24f2fd7039af8 | |
parent | adding wrapper implementation (diff) | |
download | elock-491bfa6ca1bac5934ea99789f3663474c9f35626.tar.xz |
fix for allocation
-rw-r--r-- | ecore/src/lib/ecore_x/ecore_x_screensaver.c | 30 |
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 |