Changeset 3749:1eda79ab5f17 in roaraudio for plugins/alsa


Ignore:
Timestamp:
05/01/10 18:13:05 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_mm_*()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/alsa/pcm.c

    r3748 r3749  
    320320 roar_disconnect(&(self->roar.con)); 
    321321 
    322  free(self); 
     322 roar_mm_free(self); 
    323323 
    324324 return 0; 
     
    376376 errno = ENOSYS; 
    377377 
    378  if ( (self = malloc(sizeof(struct roar_alsa_pcm))) == NULL ) 
     378 if ( (self = roar_mm_malloc(sizeof(struct roar_alsa_pcm))) == NULL ) 
    379379  return -errno; 
    380380 
     
    383383 errno = ENOSYS; 
    384384 if ( roar_simple_connect(&(self->roar.con), (char*)server, "ALSA Plugin") == -1 ) { 
    385   free(self); 
     385  roar_mm_free(self); 
    386386  return -errno; 
    387387 } 
     
    397397 if ( (ret = snd_pcm_ioplug_create(&(self->io), name, stream, mode)) < 0 ) { 
    398398  roar_disconnect(&(self->roar.con)); 
    399   free(self); 
     399  roar_mm_free(self); 
    400400  return ret; 
    401401 } 
     
    404404  snd_pcm_ioplug_delete(&(self->io)); 
    405405  roar_disconnect(&(self->roar.con)); 
    406   free(self); 
     406  roar_mm_free(self); 
    407407  return ret; 
    408408 } 
Note: See TracChangeset for help on using the changeset viewer.