[eldbus] assign NULL to fd_handler, after deletion.

Summary: [eldbus] assign NULL to fd_handler, after deletion.

Test Plan: N/A

Reviewers: raster, cedric

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3243
This commit is contained in:
Shinwoo Kim 2015-10-29 13:45:07 +09:00 committed by Carsten Haitzler (Rasterman)
parent a42d2fef69
commit e555f07235
1 changed files with 4 additions and 1 deletions

View File

@ -554,7 +554,10 @@ eldbus_fd_handler_del(Eldbus_Handler_Data *hd)
hd->conn->fd_handlers = eina_inlist_remove(hd->conn->fd_handlers,
EINA_INLIST_GET(hd));
if (hd->fd_handler)
ecore_main_fd_handler_del(hd->fd_handler);
{
ecore_main_fd_handler_del(hd->fd_handler);
hd->fd_handler = NULL;
}
free(hd);
}