Changeset 2671:6d530c15f360 in roaraudio


Ignore:
Timestamp:
09/12/09 22:51:25 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

disconnect child from parent and free() it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r2670 r2671  
    148148 _DECL(); 
    149149 int r = 0; 
     150 int i; 
    150151 
    151152 _PREP(); 
     
    157158  return inst->parent->ccb.close(inst->parent, inst); 
    158159 
     160 for (i = 0; i < CONT_FW_MAX_CHILDS; i++) { 
     161  if ( inst->parent->child[i] == inst ) { 
     162   inst->parent->child[i] = NULL; 
     163  } 
     164 } 
     165 
     166 free(inst); 
     167 
    159168 return  r; 
    160169} 
Note: See TracChangeset for help on using the changeset viewer.