Commit 04c4f0c1 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* This change should be better then the one in [14346]

parent 2ce311a5
...@@ -81,11 +81,11 @@ typedef struct aout_alloc_t ...@@ -81,11 +81,11 @@ typedef struct aout_alloc_t
} }
#define aout_BufferFree( p_buffer ) \ #define aout_BufferFree( p_buffer ) \
if ( (p_buffer)->i_alloc_type == AOUT_ALLOC_HEAP ) \ if( p_buffer != NULL && (p_buffer)->i_alloc_type == AOUT_ALLOC_HEAP ) \
{ \ { \
if( p_buffer ) free( p_buffer ); \ free( p_buffer ); \
p_buffer = NULL; \ } \
} p_buffer = NULL;
/***************************************************************************** /*****************************************************************************
* aout_fifo_t : audio output buffer FIFO * aout_fifo_t : audio output buffer FIFO
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment