summaryrefslogtreecommitdiff
path: root/ringbuffer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-01-26 19:50:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-01-26 19:50:19 +0100
commit5693873b9b010124c33b8bc725fe178c3ca3a4f1 (patch)
treea801bca8ede1fc59e948067404bad82393bb8261 /ringbuffer.c
parent829c834d3045145f048436ff4f5ad0e6acc083ef (diff)
downloadvdr-5693873b9b010124c33b8bc725fe178c3ca3a4f1.tar.gz
vdr-5693873b9b010124c33b8bc725fe178c3ca3a4f1.tar.bz2
Fixed a new/delete malloc/free mismatch
Diffstat (limited to 'ringbuffer.c')
-rw-r--r--ringbuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ringbuffer.c b/ringbuffer.c
index 0734c28d..48622f0c 100644
--- a/ringbuffer.c
+++ b/ringbuffer.c
@@ -7,7 +7,7 @@
* Parts of this file were inspired by the 'ringbuffy.c' from the
* LinuxDVB driver (see linuxtv.org).
*
- * $Id: ringbuffer.c 1.12 2003/01/26 09:39:24 kls Exp $
+ * $Id: ringbuffer.c 1.13 2003/01/26 19:47:10 kls Exp $
*/
#include "ringbuffer.h"
@@ -188,7 +188,7 @@ cFrame::cFrame(const uchar *Data, int Count, eFrameType Type, int Index)
if (Count < 0)
data = (uchar *)Data;
else {
- data = new uchar[count];
+ data = MALLOC(uchar, count);
if (data)
memcpy(data, Data, count);
else
@@ -199,7 +199,7 @@ cFrame::cFrame(const uchar *Data, int Count, eFrameType Type, int Index)
cFrame::~cFrame()
{
- delete data;
+ free(data);
}
// --- cRingBufferFrame ------------------------------------------------------