princeamd pushed a commit to branch ecore-1.7.
commit 7cde1314a78ac0535d19ccc58b77c3e2a9dea9ef
Author: Christopher Michael <[email protected]>
Date: Thu Feb 7 12:43:55 2013 +0000
Backport: 37749b3 :: Add ecore_x_randr_crtc_info_free function.
Signed-off-by: Christopher Michael <[email protected]>
SVN revision: 83739
Signed-off-by: Deon Thomas <[email protected]>
---
src/lib/ecore_x/xlib/ecore_x_randr.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/lib/ecore_x/xlib/ecore_x_randr.c
b/src/lib/ecore_x/xlib/ecore_x_randr.c
index 63dd2d2..5fa6b07 100644
--- a/src/lib/ecore_x/xlib/ecore_x_randr.c
+++ b/src/lib/ecore_x/xlib/ecore_x_randr.c
@@ -1847,6 +1847,26 @@ ecore_x_randr_crtc_info_get(Ecore_X_Window root, const
Ecore_X_Randr_Crtc crtc)
}
/*
+ * @since 1.8
+ */
+EAPI void
+ecore_x_randr_crtc_info_free(Ecore_X_Randr_Crtc_Info *info)
+{
+#ifdef ECORE_XRANDR
+ if (_randr_version >= RANDR_VERSION_1_2)
+ {
+ if (info)
+ {
+ if (info->outputs) free(info->outputs);
+ if (info->possible) free(info->possible);
+ free(info);
+ info = NULL;
+ }
+ }
+#endif
+}
+
+/*
* @brief Add given mode to given output.
*
* @param output The output the mode is added to.
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev