diff options
| author | MenTaLguY <mental@rydia.net> | 2006-05-28 19:51:13 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-05-28 19:51:13 +0000 |
| commit | 2d08a9d98d19a0581eeae687bb0322dc98806d40 (patch) | |
| tree | 3adec19e80f170b623e41454aae370cb7c75dade /src/extension/internal/pdf.cpp | |
| parent | okay, that looked better in the icon preview than it did in practice; putting... (diff) | |
| download | inkscape-2d08a9d98d19a0581eeae687bb0322dc98806d40.tar.gz inkscape-2d08a9d98d19a0581eeae687bb0322dc98806d40.zip | |
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)
Diffstat (limited to 'src/extension/internal/pdf.cpp')
| -rw-r--r-- | src/extension/internal/pdf.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <signal.h>
#include <errno.h>
+#include <glib/gmem.h>
#include <libnr/n-art-bpath.h>
#include <libnr/nr-point-matrix-ops.h>
@@ -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);
|
