summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-09 01:18:18 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-09 01:18:18 +0000
commit47b58f75dac468cdf1cb77eb6d31b1426b3f5c4d (patch)
treeffb07e76f4263950f59e467229818bc058bdbcc7
parentd295264bc0c8059ec0c4289e90f3f54bc8a03c8e (diff)
fix null deref
SVN revision: 64963
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con.c b/legacy/ecore/src/lib/ecore_con/ecore_con.c
index b731e2ed2d..b5e6f3fa86 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con.c
@@ -1031,15 +1031,13 @@ ecore_con_event_client_del(Ecore_Con_Client *cl)
1031{ 1031{
1032 Ecore_Con_Event_Client_Del *e; 1032 Ecore_Con_Event_Client_Del *e;
1033 1033
1034 if (!cl) return;
1034 e = ecore_con_event_client_del_alloc(); 1035 e = ecore_con_event_client_del_alloc();
1035 EINA_SAFETY_ON_NULL_RETURN(e); 1036 EINA_SAFETY_ON_NULL_RETURN(e);
1036 1037
1037 if (cl) 1038 cl->event_count++;
1038 { 1039 cl->host_server->event_count++;
1039 cl->event_count++; 1040 _ecore_con_cl_timer_update(cl);
1040 cl->host_server->event_count++;
1041 _ecore_con_cl_timer_update(cl);
1042 }
1043 e->client = cl; 1041 e->client = cl;
1044 ecore_event_add(ECORE_CON_EVENT_CLIENT_DEL, e, 1042 ecore_event_add(ECORE_CON_EVENT_CLIENT_DEL, e,
1045 (Ecore_End_Cb)_ecore_con_event_client_del_free, cl->host_server); 1043 (Ecore_End_Cb)_ecore_con_event_client_del_free, cl->host_server);