Changeset 2713:0b9af3059649 in roaraudio
- Timestamp:
- 09/15/09 00:26:30 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/container_framework.c
r2704 r2713 59 59 int i; 60 60 61 ROAR_DBG("cont_fw_delete(inst=%p) = ?", inst); 62 61 63 if ( inst == NULL ) 62 64 return -1; 65 66 ROAR_DBG("cont_fw_delete(inst=%p) = ?", inst); 63 67 64 68 // check if there are streams to close... 65 69 for (i = 0; i < CONT_FW_MAX_CHILDS; i++) { 66 70 if ( inst->child[i] != NULL ) { 71 ROAR_DBG("cont_fw_delete(inst=%p) = -1 // there are still open childs", inst); 67 72 return -1; 68 73 } 69 74 } 75 76 ROAR_DBG("cont_fw_delete(inst=%p) = ?", inst); 70 77 71 78 if ( inst->pcb.close != NULL ) … … 73 80 74 81 free(inst); 82 83 ROAR_DBG("cont_fw_delete(inst=%p) = 0", inst); 75 84 76 85 return 0; … … 205 214 206 215 if ( inst->parent->ccb.close != NULL ) 207 return inst->parent->ccb.close(inst->parent, inst); 216 if ( inst->parent->ccb.close(inst->parent, inst) == -1 ) 217 r = -1; 208 218 209 219 for (i = 0; i < CONT_FW_MAX_CHILDS; i++) {
Note: See TracChangeset
for help on using the changeset viewer.