Changeset 3386:89f9ef49c056 in roaraudio for libroarpulse


Ignore:
Timestamp:
02/11/10 13:03:42 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use RoarAudio's MemMgr?, not system's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/simple.c

    r3385 r3386  
    5151    int *error                          /**< A pointer where the error code is stored when the routine returns NULL. It is OK to pass NULL here. */ 
    5252    ) { 
    53  struct roarpulse_simple * s = malloc(sizeof(struct roarpulse_simple)); 
     53 struct roarpulse_simple * s = roar_mm_malloc(sizeof(struct roarpulse_simple)); 
    5454 struct roar_audio_info info; 
    5555 int roar_dir; 
     
    6464  roar_dir = ROAR_DIR_RECORD; 
    6565 } else { 
    66   free(s); 
     66  roar_mm_free(s); 
    6767  return NULL; 
    6868 } 
    6969 
    7070 if ( roar_pa_sspec2auinfo(&info, ss) == -1 ) { 
    71   free(s); 
     71  roar_mm_free(s); 
    7272  return NULL; 
    7373 } 
     
    7777 
    7878 if ( roar_simple_connect(&(s->con), (char*)server, (char*)name) == -1 ) { 
    79   free(s); 
     79  roar_mm_free(s); 
    8080  return NULL; 
    8181 } 
     
    8585                                     info.bits, info.codec, roar_dir) == -1 ) { 
    8686  roar_disconnect(&(s->con)); 
    87   free(s); 
     87  roar_mm_free(s); 
    8888  return NULL; 
    8989 } 
     
    109109 roar_disconnect(&(ss->con)); 
    110110 
    111  free(s); 
     111 roar_mm_free(s); 
    112112} 
    113113 
Note: See TracChangeset for help on using the changeset viewer.