mirror of https://github.com/GNOME/gimp.git
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:
parent
09cca4bf9a
commit
18db691f0e
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue