ecore: Avoid returning when holding locks

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 62347
This commit is contained in:
Mike McCormack 2011-08-11 12:01:09 +00:00 committed by Mike McCormack
parent 4f5d5c40bf
commit e1b75002f0
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func
if ((fd < 0) || (flags == 0) || (!func)) goto unlock;
fdh = calloc(1, sizeof(Ecore_Fd_Handler));
if (!fdh) return NULL;
if (!fdh) goto unlock;
ECORE_MAGIC_SET(fdh, ECORE_MAGIC_FD_HANDLER);
fdh->next_ready = NULL;
fdh->fd = fd;