mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +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:
@@ -658,7 +658,7 @@ g_file_monitor_source_new (gpointer instance,
|
||||
source = g_source_new (&source_funcs, sizeof (GFileMonitorSource));
|
||||
fms = (GFileMonitorSource *) source;
|
||||
|
||||
g_source_set_name (source, "GFileMonitorSource");
|
||||
g_source_set_static_name (source, "GFileMonitorSource");
|
||||
|
||||
g_mutex_init (&fms->lock);
|
||||
g_weak_ref_init (&fms->instance_ref, instance);
|
||||
|
Reference in New Issue
Block a user