forked from enlightenment/efl
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:
parent
736d81e866
commit
37749b3d3e
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue