ecore_con: pass the correct pointer as data in the callback.

Summary:
The pass of the wrong pointer caused a wrong scope get call cause the the
passed pointer was not a valid eo pointer.

Test Plan: Run enlightenment entrance, it wont crash anymore

Reviewers: tasn

Subscribers: cedric, Sachiel

Differential Revision: https://phab.enlightenment.org/D1352
This commit is contained in:
Marcel Hollerbach 2014-08-23 16:39:14 +09:00 committed by Carsten Haitzler (Rasterman)
parent 4aeee0de4c
commit 8749504b5c
1 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ ecore_con_local_connect(Ecore_Con_Server *obj,
svr->fd_handler =
ecore_main_fd_handler_add(svr->fd, ECORE_FD_READ,
cb_done, svr, NULL, NULL);
cb_done, obj, NULL, NULL);
if (!svr->fd_handler)
return 0;
@ -387,7 +387,7 @@ fd_ready:
svr->fd_handler =
ecore_main_fd_handler_add(svr->fd, ECORE_FD_READ,
cb_listen, svr, NULL, NULL);
cb_listen, obj, NULL, NULL);
umask(pmode);
if (!svr->fd_handler)
goto error;