Add ecore_x_randr_crtc_info_free function.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83739
This commit is contained in:
Christopher Michael 2013-02-07 12:43:55 +00:00 committed by Christopher Michael
parent 736d81e866
commit 37749b3d3e
1 changed files with 20 additions and 0 deletions

View File

@ -1846,6 +1846,26 @@ ecore_x_randr_crtc_info_get(Ecore_X_Window root, const Ecore_X_Randr_Crtc crtc)
return NULL;
}
/*
* @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.
*