From 2d08a9d98d19a0581eeae687bb0322dc98806d40 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sun, 28 May 2006 19:51:13 +0000 Subject: replace nr_new() with g_new(), and try to converge on using the glib allocator a little more instead of the others (aside from libgc) (bzr r1044) --- src/extension/internal/pdf.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/extension/internal/pdf.cpp') diff --git a/src/extension/internal/pdf.cpp b/src/extension/internal/pdf.cpp index ed98c4a29..938f570b7 100644 --- a/src/extension/internal/pdf.cpp +++ b/src/extension/internal/pdf.cpp @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -405,7 +406,7 @@ PrintPDF::finish(Inkscape::Extension::Print *mod) nr_arena_item_set_transform(mod->root, &affine); - guchar *const px = nr_new(guchar, 4 * width * 64); + guchar *const px = g_new(guchar, 4 * width * 64); for (int y = 0; y < height; y += 64) { /* Set area of interest. */ @@ -439,7 +440,7 @@ PrintPDF::finish(Inkscape::Extension::Print *mod) print_image(_stream, px, bbox.x1 - bbox.x0, bbox.y1 - bbox.y0, 4 * width, &imgt); } - nr_free(px); + g_free(px); } pdf_file->end_page(page_stream); -- cgit v1.2.3