Commit 338b83b6 authored by Kristian Høgsberg's avatar Kristian Høgsberg

2005-03-03 Kristian Høgsberg <krh@redhat.com>

        Patch from Jeff Muizelaar <jrmuizel@nit.ca>:

        * poppler/CairoOutputDev.cc (CairoOutputDev::drawImage,
        CairoOutputDev::drawImageMask): destroy the image surface and
        free the image buffer.
parent 062aa514
2005-03-03 Kristian Høgsberg <krh@redhat.com>
Patch from Jeff Muizelaar <jrmuizel@nit.ca>:
* poppler/CairoOutputDev.cc (CairoOutputDev::drawImage,
CairoOutputDev::drawImageMask): destroy the image surface and
free the image buffer.
2005-03-03 Kristian Høgsberg <krh@redhat.com>
* autogen.sh: Add -i to autoreconf invocation.
* autogen.sh: Add to CVS.
2005-03-01 Kristian Høgsberg <krh@redhat.com>
......
#!/bin/sh
autoreconf -v
autoreconf -v -i
./configure $@
......@@ -468,9 +468,10 @@ void CairoOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str,
fill_color.r, fill_color.g, fill_color.b);
cairo_show_surface (cairo, image, width, height);
/* TODO: How is buffer + image freed? */
cairo_restore (cairo);
cairo_surface_destroy (image);
free (buffer);
delete imgStr;
......@@ -562,8 +563,9 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
cairo_surface_set_filter (image, CAIRO_FILTER_BEST);
cairo_show_surface (cairo, image, width, height);
/* TODO: How is buffer + image freed? */
cairo_restore (cairo);
cairo_surface_destroy (image);
free (buffer);
delete imgStr;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment