raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8749504b5c4e426dd7371a6028f7f1e340f2036e

commit 8749504b5c4e426dd7371a6028f7f1e340f2036e
Author: Marcel Hollerbach <[email protected]>
Date:   Sat Aug 23 16:39:14 2014 +0900

    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
---
 src/lib/ecore_con/ecore_con_local.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_con/ecore_con_local.c 
b/src/lib/ecore_con/ecore_con_local.c
index e928f0c..35a98b4 100644
--- a/src/lib/ecore_con/ecore_con_local.c
+++ b/src/lib/ecore_con/ecore_con_local.c
@@ -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;

-- 


Reply via email to