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/libnr/nr-svp-render.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/libnr/nr-svp-render.cpp')
| -rw-r--r-- | src/libnr/nr-svp-render.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libnr/nr-svp-render.cpp b/src/libnr/nr-svp-render.cpp index 0c3b391d5..0ca73bc0e 100644 --- a/src/libnr/nr-svp-render.cpp +++ b/src/libnr/nr-svp-render.cpp @@ -14,6 +14,7 @@ #define noNR_VERBOSE +#include <glib/gmem.h> #include "nr-svp-render.h" static void nr_svp_render (NRSVP *svp, unsigned char *px, unsigned int bpp, unsigned int rs, int x0, int y0, int x1, int y1, @@ -371,7 +372,7 @@ nr_slice_new (int wind, NRPoint *points, unsigned int length, NR::Coord y) if (s == NULL) { int i; - s = nr_new (NRSlice, NR_SLICE_ALLOC_SIZE); + s = g_new (NRSlice, NR_SLICE_ALLOC_SIZE); for (i = 1; i < (NR_SLICE_ALLOC_SIZE - 1); i++) s[i].next = &s[i + 1]; s[NR_SLICE_ALLOC_SIZE - 1].next = NULL; ffslice = s + 1; @@ -521,7 +522,7 @@ nr_run_new (NR::Coord x0, NR::Coord y0, NR::Coord x1, NR::Coord y1, int wind) if (r == NULL) { int i; - r = nr_new (NRRun, NR_RUN_ALLOC_SIZE); + r = g_new (NRRun, NR_RUN_ALLOC_SIZE); for (i = 1; i < (NR_RUN_ALLOC_SIZE - 1); i++) (r + i)->next = (r + i + 1); (r + NR_RUN_ALLOC_SIZE - 1)->next = NULL; ffrun = r + 1; |
