summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-12-03 15:46:42 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-12-03 15:46:42 +0000
commita42b67d7c2dce2a2683e3b4cba79980c541b336f (patch)
tree8b2ed5c8c11475439261a69a73b7cb6f43b7ed5b /src
parent8351e13e2d26b4990f3f215664ef6ae736d4ba6f (diff)
downloadxine-lib-a42b67d7c2dce2a2683e3b4cba79980c541b336f.tar.gz
xine-lib-a42b67d7c2dce2a2683e3b4cba79980c541b336f.tar.bz2
fix a huge memleak (thanks to Jerome for reporting)
CVS patchset: 7190 CVS date: 2004/12/03 15:46:42
Diffstat (limited to 'src')
-rw-r--r--src/libxinevdec/image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c
index d82b1f194..413aee26f 100644
--- a/src/libxinevdec/image.c
+++ b/src/libxinevdec/image.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: image.c,v 1.15 2004/07/11 21:38:05 mroi Exp $
+ * $Id: image.c,v 1.16 2004/12/03 15:46:42 mroi Exp $
*
* a image video decoder
*/
@@ -263,7 +263,10 @@ static void end_callback(png_structp png_ptr, png_infop info) {
*out = le2me_16(*out);
}
+
+ free(this->rows[row]);
}
+ free(this->rows);
_x_stream_info_set(this->stream, XINE_STREAM_INFO_FRAME_DURATION, img->duration);
img->draw(img, this->stream);
img->free(img);