aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/pdp_rec~.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/pdp_rec~.c b/modules/pdp_rec~.c
index 5b217dd..56e11a5 100644
--- a/modules/pdp_rec~.c
+++ b/modules/pdp_rec~.c
@@ -80,8 +80,16 @@ typedef struct pdp_rec_struct
static void pdp_rec_free_ressources(t_pdp_rec *x)
{
- if ( x->x_yuvpointers ) freebytes ( x->x_yuvpointers, 3*sizeof( unsigned char** ) );
- if ( x->x_yuvbuffer ) freebytes ( x->x_yuvbuffer, x->x_vsize + (x->x_vsize>>1) );
+ if ( x->x_yuvpointers )
+ {
+ post( "pdp_rec~ : freeing pointers..." );
+ freebytes ( x->x_yuvpointers, 3*sizeof(unsigned char**) );
+ }
+ if ( x->x_yuvbuffer )
+ {
+ post( "pdp_rec~ : freeing buffers..." );
+ freebytes ( x->x_yuvbuffer, x->x_vsize + (x->x_vsize>>1) );
+ }
}