Code

replace nr_new() with g_new(), and try to converge on using the glib allocator a...
[inkscape.git] / src / dialogs / clonetiler.cpp
index 64edcbfd59e920fd9bec0d2369e2da44424ff981..e47437c724c61e0c86ebd2ff44bdd518164d02e8 100644 (file)
@@ -13,6 +13,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
+#include <glib/gmem.h>
 #include <gtk/gtk.h>
 #include <glibmm/i18n.h>
 
@@ -778,7 +779,7 @@ clonetiler_trace_pick (NR::Rect box)
     int height = ibox.y1 - ibox.y0;
 
     /* Set up pixblock */
-    guchar *px = nr_new(guchar, 4 * width * height);
+    guchar *px = g_new(guchar, 4 * width * height);
     memset(px, 0x00, 4 * width * height);
 
     /* Render */