cleanup channel objects on delete

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-12-02 13:48:43 -05:00
parent e8a015db81
commit e87014fab2
1 changed files with 6 additions and 0 deletions

View File

@ -197,6 +197,12 @@ _channel_create(Evas *evas, const char *name)
void
_channel_destroy(Channel *chl)
{
if (chl->o_img) evas_object_del(chl->o_img);
if (chl->o_spacer) evas_object_del(chl->o_spacer);
if (chl->o_grid) evas_object_del(chl->o_grid);
if (chl->o_bg) evas_object_del(chl->o_bg);
if (chl->o_base) evas_object_del(chl->o_base);
/* delete channel name */
if (chl->name) eina_stringshare_del(chl->name);