Changeset 4957:45ba4cf2abe3 in roaraudio for roard/container_framework.c


Ignore:
Timestamp:
05/13/11 23:30:17 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_mm_*() where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r4708 r4957  
    4343  return -1; 
    4444 
    45  if ( (self = malloc(sizeof(struct cont_fw_parent_inst))) == NULL ) { 
     45 if ( (self = roar_mm_malloc(sizeof(struct cont_fw_parent_inst))) == NULL ) { 
    4646  *inst = NULL; 
    4747  return -1; 
     
    5454 
    5555 if ( cont_pvio_open(&(self->vio), self) == -1 ) { 
    56   free(self); 
     56  roar_mm_free(self); 
    5757  return -1; 
    5858 } 
     
    8585  inst->pcb.close(inst); 
    8686 
    87  free(inst); 
     87 roar_mm_free(inst); 
    8888 
    8989 ROAR_DBG("cont_fw_delete(inst=%p) = 0", inst); 
     
    135135  return -1; 
    136136 
    137  if ( (self = malloc(sizeof(struct cont_fw_child_vio_inst))) == NULL ) 
     137 if ( (self = roar_mm_malloc(sizeof(struct cont_fw_child_vio_inst))) == NULL ) 
    138138  return -1; 
    139139 
     
    149149  if ( inst->pcb.new_child(inst, self) == -1 ) { 
    150150   inst->child[i] = NULL; 
    151    free(self); 
     151   roar_mm_free(self); 
    152152   return -1; 
    153153  } 
     
    229229 } 
    230230 
    231  free(inst); 
     231 roar_mm_free(inst); 
    232232 
    233233 return  r; 
Note: See TracChangeset for help on using the changeset viewer.