summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/xcb/ecore_xcb_randr.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-05-08 10:07:53 +0100
committerChris Michael <cp.michael@samsung.com>2013-05-08 10:07:53 +0100
commit559b1b33012d0577216303ebf127733bf80aea1d (patch)
tree9fa90fbe26d9ace36a286c9e36e319392fec8e55 /src/lib/ecore_x/xcb/ecore_xcb_randr.c
parentb619f84590b8b0dd0bab87eb1af80c90056362bf (diff)
Add missing ecore_x_randr_crtc_info_free function to xcb.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_x/xcb/ecore_xcb_randr.c')
-rw-r--r--src/lib/ecore_x/xcb/ecore_xcb_randr.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 02e8cc25d6..2bb43c17ce 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)
2134 return ret; 2134 return ret;
2135} 2135}
2136 2136
2137EAPI void
2138ecore_x_randr_crtc_info_free(Ecore_X_Randr_Crtc_Info *info)
2139{
2140#ifdef ECORE_XCB_RANDR
2141 if (_randr_version >= RANDR_1_2)
2142 {
2143 if (info)
2144 {
2145 if (info->outputs) free(info->outputs);
2146 if (info->possible) free(info->possible);
2147 free(info);
2148 info = NULL;
2149 }
2150 }
2151#endif
2152}
2153
2137EAPI Ecore_X_Randr_Refresh_Rate 2154EAPI Ecore_X_Randr_Refresh_Rate
2138ecore_x_randr_crtc_refresh_rate_get(Ecore_X_Window root, 2155ecore_x_randr_crtc_refresh_rate_get(Ecore_X_Window root,
2139 Ecore_X_Randr_Crtc crtc, 2156 Ecore_X_Randr_Crtc crtc,