Changeset 3832:25e79a40b829 in roaraudio
- Timestamp:
- 05/16/10 21:57:38 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaryiff/connection.c
r3813 r3832 27 27 28 28 YConnection *YOpenConnection (const char *start_arg, const char *con_arg) { 29 YConnection * ycon = malloc(sizeof(YConnection));29 YConnection * ycon = roar_mm_malloc(sizeof(YConnection)); 30 30 struct roar_connection con; 31 31 char * server = (char *)con_arg; … … 49 49 if (roar_simple_connect(&con, server, name) == -1) { 50 50 // Handle start_arg here! 51 free(ycon);51 roar_mm_free(ycon); 52 52 return NULL; 53 53 } … … 55 55 if ( (ycon->fd = roar_get_connection_fh(&con)) == -1 ) { 56 56 roar_disconnect(&con); 57 free(ycon);57 roar_mm_free(ycon); 58 58 return NULL; 59 59 } … … 63 63 64 64 void YCloseConnection (YConnection *connection, Boolean no_shutdown) { 65 if ( !connection)65 if ( connection == NULL ) 66 66 return; 67 67 … … 69 69 70 70 71 free(connection);71 roar_mm_free(connection); 72 72 } 73 73
Note: See TracChangeset
for help on using the changeset viewer.