efl: fix memory leak in edje and evas.

Summary:
Signed-off-by: Godly T.Alias <godlytalias@yahoo.co.in>
Signed-off-by: Ayush Srivastava <ayush.sriv@samsung.com>

Test Plan: EFL apps

Reviewers: cedric, raster

Subscribers: rajeshps, ayush.sriv, jpeg, prince.dubey

Differential Revision: https://phab.enlightenment.org/D4660

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Godly T.Alias 2017-02-15 16:29:05 -08:00 committed by Cedric BAIL
parent ae5d002466
commit 48627996d7
2 changed files with 7 additions and 0 deletions

View File

@ -1943,6 +1943,12 @@ _edje_file_del(Edje *ed)
free(rp->typedata.text);
rp->typedata.text = NULL;
}
else if ((rp->type == EDJE_PART_TYPE_VECTOR) &&
(rp->typedata.vector))
{
free(rp->typedata.vector);
rp->typedata.vector = NULL;
}
else if ((rp->type == EDJE_RP_TYPE_SWALLOW) &&
(rp->typedata.swallow))
{

View File

@ -675,6 +675,7 @@ evas_gl_common_shaders_flush(Evas_GL_Shared *shared)
to_delete = eina_list_append(to_delete, p);
}
eina_iterator_free(it);
EINA_LIST_FREE(to_delete, p)
eina_hash_del(shared->shaders_hash, &p->flags, p);
}