devilhorns pushed a commit to branch master.

commit 559b1b33012d0577216303ebf127733bf80aea1d
Author: Chris Michael <[email protected]>
Date:   Wed May 8 10:07:53 2013 +0100

    Add missing ecore_x_randr_crtc_info_free function to xcb.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_x/xcb/ecore_xcb_randr.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c 
b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 02e8cc2..2bb43c1 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -2134,6 +2134,23 @@ ecore_x_randr_crtc_info_get(Ecore_X_Window root, const 
Ecore_X_Randr_Crtc crtc)
    return ret;
 }
 
+EAPI void 
+ecore_x_randr_crtc_info_free(Ecore_X_Randr_Crtc_Info *info)
+{
+#ifdef ECORE_XCB_RANDR
+   if (_randr_version >= RANDR_1_2)
+     {
+        if (info)
+          {
+             if (info->outputs) free(info->outputs);
+             if (info->possible) free(info->possible);
+             free(info);
+             info = NULL;
+          }
+     }
+#endif
+}
+
 EAPI Ecore_X_Randr_Refresh_Rate
 ecore_x_randr_crtc_refresh_rate_get(Ecore_X_Window     root,
                                     Ecore_X_Randr_Crtc crtc,

-- 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may

Reply via email to