princeamd pushed a commit to branch ecore-1.7.
commit 8b8252aeb207dcb46d5a236d5e90bee3ca4adcdb
Author: Chris Michael <[email protected]>
Date: Wed May 8 10:07:53 2013 +0100
Backport: 559b1b3 :: Add missing ecore_x_randr_crtc_info_free function to
xcb.
Signed-off-by: Chris Michael <[email protected]>
Signed-off-by: Deon Thomas <[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 cc809a3..a10dc0e 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,
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev