From 4b49d77e8ce9c6f8cc00e1cd48771256aa8c35aa Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 17 Dec 2004 23:32:26 +0000 Subject: [PATCH] Memleak fix. --- src/mpegparser/M2VParser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mpegparser/M2VParser.cpp b/src/mpegparser/M2VParser.cpp index cf806d38c..61ac1197c 100644 --- a/src/mpegparser/M2VParser.cpp +++ b/src/mpegparser/M2VParser.cpp @@ -40,8 +40,7 @@ MPEGFrame::MPEGFrame(binary* data, uint32_t size, bool bCopy){ } MPEGFrame::~MPEGFrame(){ - if (bCopy) - safefree(data); + safefree(data); } void M2VParser::SetEOS(){