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/libnr/nr-pixblock-pattern.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libnr/nr-pixblock-pattern.cpp') diff --git a/src/libnr/nr-pixblock-pattern.cpp b/src/libnr/nr-pixblock-pattern.cpp index 03bd688ba..b4e25638f 100644 --- a/src/libnr/nr-pixblock-pattern.cpp +++ b/src/libnr/nr-pixblock-pattern.cpp @@ -10,6 +10,7 @@ */ +#include #include "nr-pixops.h" #include "nr-pixblock-pattern.h" @@ -34,7 +35,7 @@ nr_pixblock_render_gray_noise (NRPixBlock *pb, NRPixBlock *mask) if (!noise) { int i; - noise = nr_new (unsigned char, NR_NOISE_SIZE); + noise = g_new (unsigned char, NR_NOISE_SIZE); for (i = 0; i < NR_NOISE_SIZE; i++) noise[i] = (rand () / (RAND_MAX >> 8)) & 0xff; } -- cgit v1.2.3