allocate GimpWireHandler structs using GSlice.

2007-12-11  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpwire.c (gimp_wire_register): allocate
	GimpWireHandler structs using GSlice.

svn path=/trunk/; revision=24315
This commit is contained in:
Sven Neumann 2007-12-11 08:39:10 +00:00 committed by Sven Neumann
parent 09cca4bf9a
commit 18db691f0e
2 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,14 @@
2007-12-11 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpwire.c (gimp_wire_register): allocate
GimpWireHandler structs using GSlice.
2007-12-11 Sven Neumann <sven@gimp.org>
* 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 <sven@gimp.org>

View File

@ -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;