Changeset 5272:b59eb85a05f9 in roaraudio for libroar/stack.c


Ignore:
Timestamp:
11/17/11 23:35:05 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

let roarstack default to roar_mm_free() not system's free() (Closes: #128)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/stack.c

    r4904 r5272  
    3636#include "libroar.h" 
    3737 
     38static void __free(void * v) { 
     39 roar_mm_free(v); 
     40} 
     41 
    3842int roar_stack_new(struct roar_stack * stack) { 
    3943 if ( stack == NULL ) 
     
    4347 
    4448 stack->flags = ROAR_STACK_FLAG_FREE_DATA; 
    45  stack->free  = free; 
     49 stack->free  = __free; 
    4650 
    4751 return 0; 
Note: See TracChangeset for help on using the changeset viewer.