Changeset 5295:5914c84e72be in roaraudio for libroar/caps.c


Ignore:
Timestamp:
11/24/11 19:43:11 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

converted message (protocol) rutunes to use roar_mm_*() (Closes: #129)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/caps.c

    r5149 r5295  
    5757   return -1; 
    5858 
    59   if ( (*data = malloc(needlen)) == NULL ) 
     59  if ( (*data = roar_mm_malloc(needlen)) == NULL ) 
    6060   return -1; 
    6161 
     
    179179 if ( mes.cmd != ROAR_CMD_OK ) { 
    180180  if ( data != NULL ) 
    181    free(data); 
     181   roar_mm_free(data); 
    182182  return -1; 
    183183 } 
     
    185185 if ( roar_caps_from_msg(&caps, &mes, data) == -1 ) { 
    186186  if ( data != NULL ) 
    187    free(data); 
     187   roar_mm_free(data); 
    188188  return -1; 
    189189 } 
     
    192192 if ( caps.version != 0 || caps.type != ROAR_CT_STANDARDS || (caps.len & 0x3) != 0 ) { 
    193193  if ( data != NULL ) 
    194    free(data); 
     194   roar_mm_free(data); 
    195195  return -1; 
    196196 } 
     
    200200  if ( *out == NULL ) { 
    201201   if ( data != NULL ) 
    202     free(data); 
     202    roar_mm_free(data); 
    203203   return -1; 
    204204  } 
     
    213213 
    214214 if ( data != NULL ) 
    215   free(data); 
     215  roar_mm_free(data); 
    216216 
    217217 return 0; 
Note: See TracChangeset for help on using the changeset viewer.