diff --git a/src/libnr/nr-svp.cpp b/src/libnr/nr-svp.cpp
index a1484397a269a13efb3becbdfac4fb7583fbbde0..7fa2cfd3690b16884681f0847cde0ae5fb2d4a00 100644 (file)
--- a/src/libnr/nr-svp.cpp
+++ b/src/libnr/nr-svp.cpp
# include <ieeefp.h>
#endif
+#include <glib/gmem.h>
#include "nr-rect.h"
#include "nr-svp-private.h"
void
nr_svp_free (NRSVP *svp)
{
- if (svp->points) nr_free (svp->points);
+ if (svp->points) g_free (svp->points);
free (svp);
}
if (v == NULL) {
int i;
- v = nr_new (NRVertex, NR_VERTEX_ALLOC_SIZE);
+ v = g_new (NRVertex, NR_VERTEX_ALLOC_SIZE);
for (i = 1; i < (NR_VERTEX_ALLOC_SIZE - 1); i++) v[i].next = &v[i + 1];
v[NR_VERTEX_ALLOC_SIZE - 1].next = NULL;
ffvertex = v + 1;
ffvertex = v->next;
}
#else
- v = nr_new (NRVertex, 1);
+ v = g_new (NRVertex, 1);
#endif
v->next = NULL;
v->next = ffvertex;
ffvertex = v;
#else
- nr_free (v);
+ g_free (v);
#endif
}
l = v;
while (l) {
n = l->next;
- nr_free (l);
+ g_free (l);
l = n;
}
#endif