Changeset 4394:8a8efafdd98b in roaraudio


Ignore:
Timestamp:
09/26/10 18:21:12 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed the segfaul on killing WAIT process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r4347 r4394  
    134134 
    135135int clients_delete (int id) { 
     136 struct roar_client_server * cs; 
    136137 int i; 
    137138 int close_client_fh = 1; 
     
    139140 ROAR_DBG("clients_delete(id=%i) = ?", id); 
    140141 
     142 _CHECK_CID(id); 
     143 
     144 cs = g_clients[id]; 
     145 
     146 if ( cs->waits != NULL ) { 
     147  for (i = 0; cs->waits[i] != NULL; i++) 
     148   roar_notify_core_unsubscribe(NULL, cs->waits[i]); 
     149 
     150  roar_mm_free(cs->waits); 
     151  cs->waits = NULL; 
     152 } 
     153 
    141154 roar_notify_core_emit_snoargs(ROAR_OE_BASICS_DELETE, -1, id, ROAR_OT_CLIENT); 
    142155 
    143156 counters_inc(clients, -1); 
    144  
    145  _CHECK_CID(id); 
    146157 
    147158 if (ROAR_CLIENT(g_clients[id])->execed != -1) { 
Note: See TracChangeset for help on using the changeset viewer.