From: Mike McCormack <mj.mccormack@samsung.com>

Date: Mon, 20 Dec 2010 17:47:19 +0900
Subject: [PATCH] Deleting the same fdh twice is an error


SVN revision: 55676
This commit is contained in:
Mike McCormack 2010-12-20 22:52:41 +00:00 committed by Mike Blumenkrantz
parent fa14105442
commit 27c7fdcc2e
1 changed files with 4 additions and 2 deletions

View File

@ -826,8 +826,10 @@ ecore_main_fd_handler_del(Ecore_Fd_Handler *fd_handler)
return NULL;
}
if (fd_handler->delete_me)
/* FIXME: should this return NULL instead? */
return fd_handler->data;
{
ERR("fdh %p deleted twice", fd_handler);
return NULL;
}
fd_handler->delete_me = EINA_TRUE;
_ecore_main_fdh_poll_del(fd_handler);