[cairo-commit] src/cairo-svg-surface.c
Emmanuel Pacaud
emmanuel at kemper.freedesktop.org
Tue Nov 21 07:50:54 PST 2006
src/cairo-svg-surface.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
New commits:
diff-tree 2dbb3dfd5f7e3d802f1c3c57b39f9d69b2b7ee1e (from 12f8718a3ed40e51e3edd678874d0a13e0eaaa74)
Author: Emmanuel Pacaud <emmanuel.pacaud at free.fr>
Date: Tue Nov 21 14:43:43 2006 +0100
SVG: plug a memory leak
What's the point in creating a memory stream if we overload the
pointer a couple of lines below ?
diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c
index 258fe24..2186ef4 100644
--- a/src/cairo-svg-surface.c
+++ b/src/cairo-svg-surface.c
@@ -434,12 +434,11 @@ _cairo_svg_surface_store_page (cairo_svg
unsigned int i;
cairo_svg_page_t page;
- page.xml_node = _cairo_memory_stream_create ();
page.surface_id = surface->id;
page.clip_id = surface->base_clip;
page.clip_level = surface->clip_level;
-
page.xml_node = surface->xml_node;
+
surface->xml_node = _cairo_memory_stream_create ();
surface->clip_level = 0;
More information about the cairo-commit
mailing list