Changeset 3833:fc0909593cea in roaraudio for libroarsndio


Ignore:
Timestamp:
05/16/10 21:59:01 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_mm_*()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/libroarsndio.c

    r3811 r3833  
    8888 int is_midi = 0; 
    8989 
    90  if ( (hdl = malloc(sizeof(struct sio_hdl))) == NULL ) 
     90 if ( (hdl = roar_mm_malloc(sizeof(struct sio_hdl))) == NULL ) 
    9191  return NULL; 
    9292 
     
    113113  // illigal: 
    114114  default: 
    115     free(hdl); 
     115    roar_mm_free(hdl); 
    116116    return NULL; 
    117117 } 
     
    128128 
    129129 if ( roar_simple_connect(&(hdl->con), (char*) name, "libroarsndio") == -1 ) { 
    130   free(hdl); 
     130  roar_mm_free(hdl); 
    131131  return NULL; 
    132132 } 
     
    163163 roar_disconnect(&(hdl->con)); 
    164164 
    165  free(hdl); 
     165 roar_mm_free(hdl); 
    166166} 
    167167 
Note: See TracChangeset for help on using the changeset viewer.