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/file.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/file.cpp')
| -rw-r--r-- | src/file.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp index 4d96899da..de9b615aa 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -25,6 +25,7 @@ # include "config.h" #endif +#include <glib/gmem.h> #include <libnr/nr-pixops.h> #include "document-private.h" @@ -1170,10 +1171,10 @@ sp_export_png_file(SPDocument *doc, gchar const *filename, write_status = sp_png_write_rgba_striped(filename, width, height, sp_export_get_rows, &ebp); nr_pixelstore_64K_free(ebp.px); } else { - ebp.px = nr_new(guchar, 4 * 64 * width); + ebp.px = g_new(guchar, 4 * 64 * width); ebp.sheight = 64; write_status = sp_png_write_rgba_striped(filename, width, height, sp_export_get_rows, &ebp); - nr_free(ebp.px); + g_free(ebp.px); } // Hide items |
