diff --git a/src/lib/ecore_x/xlib/ecore_x_randr.c b/src/lib/ecore_x/xlib/ecore_x_randr.c index 63dd2d22df..5fa6b07ed4 100644 --- a/src/lib/ecore_x/xlib/ecore_x_randr.c +++ b/src/lib/ecore_x/xlib/ecore_x_randr.c @@ -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. *