Changeset 4975:1b8be0a0ba5f in roaraudio for libroar/vio_cmd.c


Ignore:
Timestamp:
05/16/11 15:16:33 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

removed more usages of system's malloc()/free() calles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_cmd.c

    r4956 r4975  
    6262 
    6363 if ( reader != NULL ) 
    64   state->reader.cmd = strdup(reader); 
     64  state->reader.cmd = roar_mm_strdup(reader); 
    6565 
    6666 state->writer.pid = -1; 
     
    6969 
    7070 if ( writer != NULL ) 
    71   state->writer.cmd = strdup(writer); 
     71  state->writer.cmd = roar_mm_strdup(writer); 
    7272 
    7373 // init state 
     
    125125 
    126126 if ( state->reader.cmd != NULL ) 
    127   free(state->reader.cmd); 
     127  roar_mm_free(state->reader.cmd); 
    128128 
    129129 if ( state->writer.cmd != NULL ) 
    130   free(state->writer.cmd); 
     130  roar_mm_free(state->writer.cmd); 
    131131 
    132132 roar_vio_close(state->next); 
     
    241241 state->child.out = -1; 
    242242 
    243  state->child.cmd = strdup(command); 
     243 state->child.cmd = roar_mm_strdup(command); 
    244244 
    245245 // init state 
     
    281281 
    282282 if ( state->child.cmd != NULL ) 
    283   free(state->child.cmd); 
     283  roar_mm_free(state->child.cmd); 
    284284 
    285285 roar_mm_free(state); 
Note: See TracChangeset for help on using the changeset viewer.