Changeset 4975:1b8be0a0ba5f in roaraudio for libroar/vio_dstr.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_dstr.c

    r4964 r4975  
    770770  return -1; 
    771771 
    772  if ( roar_vio_open_stack(calls) == -1 ) 
     772 if ( roar_vio_open_stack2(calls, NULL) == -1 ) 
    773773  return -1; 
    774774 
     
    776776 
    777777 if ( (def = chain->def) != NULL ) { 
    778   if ( (tc = malloc(sizeof(struct roar_vio_calls))) == NULL ) { 
     778  if ( (tc = roar_mm_malloc(sizeof(struct roar_vio_calls))) == NULL ) { 
    779779   _ret(-1); 
    780780  } 
    781781 
    782782  if ( roar_vio_clear_calls(tc) == -1 ) { 
    783    free(tc); 
     783   roar_mm_free(tc); 
    784784   _ret(-1); 
    785785  } 
     
    809809 
    810810  if ( c->need_vio ) { 
    811    if ( (tc = malloc(sizeof(struct roar_vio_calls))) == NULL ) { 
     811   if ( (tc = roar_mm_malloc(sizeof(struct roar_vio_calls))) == NULL ) { 
    812812    _ret(-1); 
    813813   } 
    814814 
    815815   if ( roar_vio_clear_calls(tc) == -1 ) { 
    816     free(tc); 
     816    roar_mm_free(tc); 
    817817    _ret(-1); 
    818818   } 
Note: See TracChangeset for help on using the changeset viewer.