summaryrefslogtreecommitdiffstats
path: root/src/dialogs/stroke-style.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-05-28 19:51:13 +0000
committermental <mental@users.sourceforge.net>2006-05-28 19:51:13 +0000
commit2d08a9d98d19a0581eeae687bb0322dc98806d40 (patch)
tree3adec19e80f170b623e41454aae370cb7c75dade /src/dialogs/stroke-style.cpp
parentokay, that looked better in the icon preview than it did in practice; putting... (diff)
downloadinkscape-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/dialogs/stroke-style.cpp')
-rw-r--r--src/dialogs/stroke-style.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp
index 5fefb8aa9..8f345d837 100644
--- a/src/dialogs/stroke-style.cpp
+++ b/src/dialogs/stroke-style.cpp
@@ -23,6 +23,7 @@
+#include <glib/gmem.h>
#include <gtk/gtk.h>
#include <glibmm/i18n.h>
@@ -590,7 +591,7 @@ sp_marker_prev_new(unsigned size, gchar const *mname,
ua.y1 = MIN(ibox.y1, area.y1);
/* Set up pixblock */
- guchar *px = nr_new(guchar, 4 * size * size);
+ guchar *px = g_new(guchar, 4 * size * size);
memset(px, 0x00, 4 * size * size);
/* Render */
@@ -609,7 +610,7 @@ sp_marker_prev_new(unsigned size, gchar const *mname,
GDK_COLORSPACE_RGB,
TRUE,
8, size, size, size * 4,
- (GdkPixbufDestroyNotify)nr_free,
+ (GdkPixbufDestroyNotify)g_free,
NULL));
return pb;
}