Changeset 3749:1eda79ab5f17 in roaraudio for plugins
- Timestamp:
- 05/01/10 18:13:05 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/alsa/pcm.c
r3748 r3749 320 320 roar_disconnect(&(self->roar.con)); 321 321 322 free(self);322 roar_mm_free(self); 323 323 324 324 return 0; … … 376 376 errno = ENOSYS; 377 377 378 if ( (self = malloc(sizeof(struct roar_alsa_pcm))) == NULL )378 if ( (self = roar_mm_malloc(sizeof(struct roar_alsa_pcm))) == NULL ) 379 379 return -errno; 380 380 … … 383 383 errno = ENOSYS; 384 384 if ( roar_simple_connect(&(self->roar.con), (char*)server, "ALSA Plugin") == -1 ) { 385 free(self);385 roar_mm_free(self); 386 386 return -errno; 387 387 } … … 397 397 if ( (ret = snd_pcm_ioplug_create(&(self->io), name, stream, mode)) < 0 ) { 398 398 roar_disconnect(&(self->roar.con)); 399 free(self);399 roar_mm_free(self); 400 400 return ret; 401 401 } … … 404 404 snd_pcm_ioplug_delete(&(self->io)); 405 405 roar_disconnect(&(self->roar.con)); 406 free(self);406 roar_mm_free(self); 407 407 return ret; 408 408 }
Note: See TracChangeset
for help on using the changeset viewer.