mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +02:00
Port internal uses to use g_source_set_static_name()
This should reduce allocations. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -4114,7 +4114,7 @@ socket_source_new (GSocket *socket,
|
||||
condition |= G_IO_HUP | G_IO_ERR | G_IO_NVAL;
|
||||
|
||||
source = g_source_new (&socket_source_funcs, sizeof (GSocketSource));
|
||||
g_source_set_name (source, "GSocket");
|
||||
g_source_set_static_name (source, "GSocket");
|
||||
socket_source = (GSocketSource *)source;
|
||||
|
||||
socket_source->socket = g_object_ref (socket);
|
||||
|
Reference in New Issue
Block a user