summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
authorMike McCormack <mj.mccormack@samsung.com>2011-08-11 12:01:09 +0000
committerMike McCormack <mikem@ring3k.org>2011-08-11 12:01:09 +0000
commite1b75002f09f20d094b2a56aa86cf6c76fbfacee (patch)
tree3eb32b16ac561777592842d99efde5805ee2e90c /legacy/ecore/src/lib/ecore/ecore_main.c
parent4f5d5c40bf31ae69d9f77462405e2d4dd5d67b80 (diff)
ecore: Avoid returning when holding locks
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 62347
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_main.c b/legacy/ecore/src/lib/ecore/ecore_main.c
index 5653726a2b..cdca336fcc 100644
--- a/legacy/ecore/src/lib/ecore/ecore_main.c
+++ b/legacy/ecore/src/lib/ecore/ecore_main.c
@@ -938,7 +938,7 @@ ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func
938 if ((fd < 0) || (flags == 0) || (!func)) goto unlock; 938 if ((fd < 0) || (flags == 0) || (!func)) goto unlock;
939 939
940 fdh = calloc(1, sizeof(Ecore_Fd_Handler)); 940 fdh = calloc(1, sizeof(Ecore_Fd_Handler));
941 if (!fdh) return NULL; 941 if (!fdh) goto unlock;
942 ECORE_MAGIC_SET(fdh, ECORE_MAGIC_FD_HANDLER); 942 ECORE_MAGIC_SET(fdh, ECORE_MAGIC_FD_HANDLER);
943 fdh->next_ready = NULL; 943 fdh->next_ready = NULL;
944 fdh->fd = fd; 944 fdh->fd = fd;