From 18db691f0eed0e71974afe83091e15c10bf97fe8 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 11 Dec 2007 08:39:10 +0000 Subject: [PATCH] allocate GimpWireHandler structs using GSlice. 2007-12-11 Sven Neumann * libgimpbase/gimpwire.c (gimp_wire_register): allocate GimpWireHandler structs using GSlice. svn path=/trunk/; revision=24315 --- ChangeLog | 6 ++++++ libgimpbase/gimpwire.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 17c78a00ee..f1059e0976 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,14 @@ +2007-12-11 Sven Neumann + + * libgimpbase/gimpwire.c (gimp_wire_register): allocate + GimpWireHandler structs using GSlice. + 2007-12-11 Sven Neumann * libgimpbase/gimpwire.c (_gimp_read_read_string): NULL-terminate all strings coming in over the wire protocol. Should help with bug #498207. + (gimp_wire_register): 2007-12-10 Sven Neumann diff --git a/libgimpbase/gimpwire.c b/libgimpbase/gimpwire.c index 4bb37c3b2c..a4e4b152fe 100644 --- a/libgimpbase/gimpwire.c +++ b/libgimpbase/gimpwire.c @@ -63,7 +63,7 @@ gimp_wire_register (guint32 type, handler = g_hash_table_lookup (wire_ht, &type); if (! handler) - handler = g_new0 (GimpWireHandler, 1); + handler = g_slice_new0 (GimpWireHandler); handler->type = type; handler->read_func = read_func;