set server/client data to NULL on a delete - as it's already returned it it
authorCarsten Haitzler <raster@rasterman.com>
Mon, 20 Mar 2006 05:59:21 +0000 (05:59 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 20 Mar 2006 05:59:21 +0000 (05:59 +0000)
should now be NULL and not used.

SVN revision: 21435

legacy/ecore/src/lib/ecore_con/ecore_con.c
legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c

index b845961..9461276 100644 (file)
@@ -499,6 +499,7 @@ ecore_con_server_del(Ecore_Con_Server *svr)
        return NULL;
      }
    data = svr->data;
+   svr->data = NULL;
    if (svr->event_count > 0)
      svr->delete_me = 1;
    else
@@ -711,6 +712,7 @@ ecore_con_client_del(Ecore_Con_Client *cl)
        return NULL;
      }   
    data = cl->data;
+   cl->data = NULL;
    if (cl->event_count > 0)
      cl->delete_me = 1;
    else
index 7a562fc..efedbec 100644 (file)
@@ -434,6 +434,7 @@ ecore_ipc_server_del(Ecore_Ipc_Server *svr)
        return NULL;
      }
    data = svr->data;
+   svr->data = NULL;
    if (svr->event_count > 0)
      svr->delete_me = 1;
    else
@@ -770,6 +771,7 @@ ecore_ipc_client_del(Ecore_Ipc_Client *cl)
        return NULL;
      }
    data = cl->data;
+   cl->data = NULL;
    if (cl->event_count > 0)
      cl->delete_me = 1;
    else