mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	gmain: Use atomic logic to init the ref counting
Ensure we're consistent with the field usage
This commit is contained in:
		@@ -933,7 +933,7 @@ g_source_new (GSourceFuncs *source_funcs,
 | 
				
			|||||||
  source = (GSource*) g_malloc0 (struct_size);
 | 
					  source = (GSource*) g_malloc0 (struct_size);
 | 
				
			||||||
  source->priv = g_slice_new0 (GSourcePrivate);
 | 
					  source->priv = g_slice_new0 (GSourcePrivate);
 | 
				
			||||||
  source->source_funcs = source_funcs;
 | 
					  source->source_funcs = source_funcs;
 | 
				
			||||||
  source->ref_count = 1;
 | 
					  g_atomic_int_set (&source->ref_count, 1);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  source->priority = G_PRIORITY_DEFAULT;
 | 
					  source->priority = G_PRIORITY_DEFAULT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user