summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2006-03-18 10:05:21 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2006-03-18 10:05:21 +0000
commit6a402de3bfe116dea7516a230dbc7fc6b06dc43e (patch)
tree50b352829c38e845ecb8c7708a4dc257f33bf935 /src
parentf1c76724c29529657d70fc80295abf1cd82884a6 (diff)
downloadxine-lib-6a402de3bfe116dea7516a230dbc7fc6b06dc43e.tar.gz
xine-lib-6a402de3bfe116dea7516a230dbc7fc6b06dc43e.tar.bz2
[coverity]
CID: 277 Checker: USE_AFTER_FREE (help) File: xine-lib/src/libxinevdec/rgb.c Function: rgb_decode_data Description: Double free of pointer "(this)->buf" in call to "free" CVS patchset: 7941 CVS date: 2006/03/18 10:05:21
Diffstat (limited to 'src')
-rw-r--r--src/libxinevdec/rgb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libxinevdec/rgb.c b/src/libxinevdec/rgb.c
index 6abb243cb..9c6468726 100644
--- a/src/libxinevdec/rgb.c
+++ b/src/libxinevdec/rgb.c
@@ -30,7 +30,7 @@
* One more catch: Raw RGB from a Microsoft file is upside down. This is
* indicated by a negative height parameter.
*
- * $Id: rgb.c,v 1.30 2005/04/24 13:37:34 tmattern Exp $
+ * $Id: rgb.c,v 1.31 2006/03/18 10:05:21 tmattern Exp $
*/
#include <stdio.h>
@@ -123,9 +123,6 @@ static void rgb_decode_data (video_decoder_t *this_gen,
if (buf->decoder_flags & BUF_FLAG_STDHEADER) { /* need to initialize */
this->stream->video_out->open (this->stream->video_out, this->stream);
- if(this->buf)
- free(this->buf);
-
bih = (xine_bmiheader *) buf->content;
this->width = (bih->biWidth + 3) & ~0x03;
this->height = (bih->biHeight + 3) & ~0x03;