Delete any cloned monitors when we delete the main one.

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

SVN revision: 81124
This commit is contained in:
Christopher Michael 2012-12-17 11:35:16 +00:00 committed by Christopher Michael
parent 606701ff6c
commit 3c270359ce
1 changed files with 6 additions and 0 deletions

View File

@ -695,10 +695,16 @@ static void
_e_smart_del(Evas_Object *obj)
{
E_Smart_Data *sd;
Eina_List *l;
Evas_Object *mclone;
/* try to get the objects smart data */
if (!(sd = evas_object_smart_data_get(obj))) return;
/* delete any existing clones */
EINA_LIST_FOREACH(sd->clones, l, mclone)
evas_object_del(mclone);
/* delete the list of modes */
if (sd->modes) eina_list_free(sd->modes);