Changeset 4957:45ba4cf2abe3 in roaraudio for roard/streams.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/streams.c

    r4934 r4957  
    372372 
    373373 if ( s->output != NULL ) 
    374   free(s->output); 
     374  roar_mm_free(s->output); 
    375375 
    376376/* 
     
    386386 
    387387 if ( s->name != NULL ) 
    388   free(s->name); 
     388  roar_mm_free(s->name); 
    389389 
    390390 roar_mm_free(s); 
     
    13361336 _CHECK_SID(id); 
    13371337 
    1338  if ( (str = strdup(name)) == NULL ) 
     1338 if ( (str = roar_mm_strdup(name)) == NULL ) 
    13391339  return -1; 
    13401340 
    13411341 if ( g_streams[id]->name != NULL ) 
    1342   free(g_streams[id]->name); 
     1342  roar_mm_free(g_streams[id]->name); 
    13431343 
    13441344 g_streams[id]->name = str; 
     
    17221722 } 
    17231723 
    1724  if ( (g_streams[id]->output = malloc(size)) == NULL ) { 
     1724 if ( (g_streams[id]->output = roar_mm_malloc(size)) == NULL ) { 
    17251725  ROAR_ERR("streams_get_outputbuffer(*): Can not alloc: %s", strerror(errno)); 
    17261726  return -1; 
Note: See TracChangeset for help on using the changeset viewer.