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/file.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/file.cpp') 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 #include #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 -- cgit v1.2.3