ecore/ecore_con - Set timer pointers to NULL when exiting them.
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Jul 2011 18:18:53 +0000 (18:18 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Jul 2011 18:18:53 +0000 (18:18 +0000)
Otherwise this will lead to errors when some code does:
if (cl->until_deletion)
    ecore_timer_del(cl->until_deletion);

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61127 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 1fc38bf..44e6b2a 100644 (file)
@@ -1463,6 +1463,7 @@ _ecore_con_server_timer(Ecore_Con_Server *svr)
 {
    ecore_con_server_del(svr);
 
 {
    ecore_con_server_del(svr);
 
+   svr->until_deletion = NULL;
    return ECORE_CALLBACK_CANCEL;
 }
 
    return ECORE_CALLBACK_CANCEL;
 }
 
@@ -1499,6 +1500,7 @@ _ecore_con_client_timer(Ecore_Con_Client *cl)
 {
    ecore_con_client_del(cl);
 
 {
    ecore_con_client_del(cl);
 
+   cl->until_deletion = NULL;
    return ECORE_CALLBACK_CANCEL;
 }
 
    return ECORE_CALLBACK_CANCEL;
 }