Changeset 4904:bc37dedf09b4 in roaraudio for libroar/stack.c


Ignore:
Timestamp:
05/05/11 11:30:29 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected use of free() to roar_mm_free()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/stack.c

    r4708 r4904  
    5555 
    5656 if ( roar_stack_new(stack) == -1 ) { 
    57   free(stack); 
     57  roar_mm_free(stack); 
    5858  return NULL; 
    5959 } 
    6060 
    6161 if ( roar_stack_set_flag(stack, ROAR_STACK_FLAG_FREE_SELF, 0) == -1 ) { 
    62   free(stack); 
     62  roar_mm_free(stack); 
    6363  return NULL; 
    6464 } 
     
    7979 
    8080 if ( stack->flags & ROAR_STACK_FLAG_FREE_SELF ) { 
    81   free(stack); 
     81  roar_mm_free(stack); 
    8282 } else { 
    8383  memset(stack, 0, sizeof(struct roar_stack)); // just to be sure... 
Note: See TracChangeset for help on using the changeset viewer.