diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 63c8621fa..df6e4cc78 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -216,11 +216,17 @@ e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Randr_Output output) default: break; } + + /* free any memory allocated from ecore_x_randr */ + free(edid); } /* set monitor name */ edje_object_part_text_set(sd->o_frame, "e.text.name", name); + /* free any memory allocated from ecore_x_randr */ + free(name); + /* set the aspect hints */ evas_object_size_hint_aspect_set(sd->o_frame, EVAS_ASPECT_CONTROL_BOTH, aw, ah);