Fresco/Berlin/src PNG.cc,1.7,1.8 RasterImpl.cc,1.6,1.7
Nick Lewycky <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Berlin/src
In directory purcel:/tmp/cvs-serv26214/Berlin/src
Modified Files:
PNG.cc RasterImpl.cc
Log Message:
Plug a memory leak I added.
Index: PNG.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/src/PNG.cc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- PNG.cc 17 Feb 2003 02:05:33 -0000 1.7
+++ PNG.cc 17 Feb 2003 03:01:00 -0000 1.8
@@ -348,8 +348,6 @@
png_uint_32 width = xupper - xlower;
png_uint_32 height = yupper - ylower;
- clear();
-
_rinfo->color_type = rgbalpha;
_rinfo->bit_depth = 8;
_rinfo->width = width;
Index: RasterImpl.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/src/RasterImpl.cc,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- RasterImpl.cc 17 Feb 2003 02:05:33 -0000 1.6
+++ RasterImpl.cc 17 Feb 2003 03:01:00 -0000 1.7
@@ -103,6 +103,7 @@
void RasterImpl::load_pixels(const Fresco::Raster::Index &lower, const Fresco::Raster::Index &upper, const Fresco::Raster::ColorSeq &pixels)
{
Trace trace("RasterImpl::load_pixels");
+ clear();
_rows = _png.pixels(lower.x, lower.y, upper.x, upper.y, pixels);
}