forked from enlightenment/enlightenment
Fix issue where randr dialog would crash when trying to close after
cloning. Don't free the mode_info returned from mode find as this mode info is still part of the monitors collection of modes. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
cee520ff75
commit
0d28595b66
|
@ -575,8 +575,6 @@ e_smart_monitor_clone_set(Evas_Object *obj, Evas_Object *parent)
|
||||||
_e_smart_monitor_mode_refresh_rate_get(mode_info);
|
_e_smart_monitor_mode_refresh_rate_get(mode_info);
|
||||||
|
|
||||||
psd->changes |= E_SMART_MONITOR_CHANGED_MODE;
|
psd->changes |= E_SMART_MONITOR_CHANGED_MODE;
|
||||||
|
|
||||||
ecore_x_randr_mode_info_free(mode_info);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -615,8 +613,6 @@ e_smart_monitor_clone_set(Evas_Object *obj, Evas_Object *parent)
|
||||||
_e_smart_monitor_mode_refresh_rate_get(mode_info);
|
_e_smart_monitor_mode_refresh_rate_get(mode_info);
|
||||||
|
|
||||||
sd->changes |= E_SMART_MONITOR_CHANGED_MODE;
|
sd->changes |= E_SMART_MONITOR_CHANGED_MODE;
|
||||||
|
|
||||||
ecore_x_randr_mode_info_free(mode_info);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue