forked from enlightenment/efl
[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:
parent
a42d2fef69
commit
e555f07235
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue