Changeset 4957:45ba4cf2abe3 in roaraudio for roard/streams.c
- Timestamp:
- 05/13/11 23:30:17 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/streams.c
r4934 r4957 372 372 373 373 if ( s->output != NULL ) 374 free(s->output);374 roar_mm_free(s->output); 375 375 376 376 /* … … 386 386 387 387 if ( s->name != NULL ) 388 free(s->name);388 roar_mm_free(s->name); 389 389 390 390 roar_mm_free(s); … … 1336 1336 _CHECK_SID(id); 1337 1337 1338 if ( (str = strdup(name)) == NULL )1338 if ( (str = roar_mm_strdup(name)) == NULL ) 1339 1339 return -1; 1340 1340 1341 1341 if ( g_streams[id]->name != NULL ) 1342 free(g_streams[id]->name);1342 roar_mm_free(g_streams[id]->name); 1343 1343 1344 1344 g_streams[id]->name = str; … … 1722 1722 } 1723 1723 1724 if ( (g_streams[id]->output = malloc(size)) == NULL ) {1724 if ( (g_streams[id]->output = roar_mm_malloc(size)) == NULL ) { 1725 1725 ROAR_ERR("streams_get_outputbuffer(*): Can not alloc: %s", strerror(errno)); 1726 1726 return -1;
Note: See TracChangeset
for help on using the changeset viewer.