summaryrefslogtreecommitdiffstats
path: root/core/Fifo.c
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:07:05 +0000
committerhandbrake <[email protected]>2006-01-14 13:07:05 +0000
commit5bfcc1c3cf9baed140c62c37a13c5087bbd3d5cf (patch)
tree0d940224e2a4b6cdba1c45418da88efa1b6a6e45 /core/Fifo.c
parent5824c4979fbc54ae3d3015c07cbf6fa4aea7516d (diff)
HandBrake 0.5.1
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@8 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'core/Fifo.c')
-rw-r--r--core/Fifo.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/Fifo.c b/core/Fifo.c
index a8f6034c0..74658d5d8 100644
--- a/core/Fifo.c
+++ b/core/Fifo.c
@@ -1,4 +1,4 @@
-/* $Id: Fifo.c,v 1.2 2003/11/05 19:14:37 titer Exp $
+/* $Id: Fifo.c,v 1.3 2003/11/09 14:27:56 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -46,10 +46,14 @@ void HBBufferReAlloc( HBBuffer * b, int size )
}
}
-void HBBufferClose( HBBuffer ** b )
+void HBBufferClose( HBBuffer ** _b )
{
- free( (*b)->data );
- (*b) = NULL;
+ HBBuffer * b = *_b;
+
+ free( b->data );
+ free( b );
+
+ *_b = NULL;
}
HBFifo * HBFifoInit( int capacity )
@@ -100,6 +104,7 @@ void HBFifoClose( HBFifo ** _f )
HBLockClose( &f->lock );
free( f->buffers );
free( f );
- (*_f) = NULL;
+
+ *_f = NULL;
}