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/ps.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/ps.cpp')
| -rw-r--r-- | src/extension/internal/ps.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index c814637c6..a72b88461 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -32,6 +32,7 @@ #include <libnr/n-art-bpath.h> +#include <glib/gmem.h> #include <gtk/gtkstock.h> #include <gtk/gtkvbox.h> #include <gtk/gtkframe.h> @@ -451,7 +452,7 @@ PrintPS::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. */ @@ -485,7 +486,7 @@ PrintPS::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); } fprintf(_stream, "showpage\n"); |
