mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +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:
@@ -381,7 +381,7 @@ ik_source_new (gboolean (* callback) (ik_event_t *event))
|
||||
source = g_source_new (&source_funcs, sizeof (InotifyKernelSource));
|
||||
iks = (InotifyKernelSource *) source;
|
||||
|
||||
g_source_set_name (source, "inotify kernel source");
|
||||
g_source_set_static_name (source, "inotify kernel source");
|
||||
|
||||
iks->unmatched_moves = g_hash_table_new (NULL, NULL);
|
||||
iks->fd = inotify_init1 (IN_CLOEXEC);
|
||||
|
Reference in New Issue
Block a user