mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	common: Add additional memory utilities (xzalloc() etc.)
This commit is contained in:
		
							parent
							
								
									b89f7bfc0d
								
							
						
					
					
						commit
						cb40cdc36c
					
				
					 35 changed files with 193 additions and 167 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0-only
 | 
			
		||||
#include "common/mem.h"
 | 
			
		||||
#include "labwc.h"
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
| 
						 | 
				
			
			@ -139,8 +140,8 @@ struct xwayland_unmanaged *
 | 
			
		|||
xwayland_unmanaged_create(struct server *server,
 | 
			
		||||
			  struct wlr_xwayland_surface *xsurface)
 | 
			
		||||
{
 | 
			
		||||
	struct xwayland_unmanaged *unmanaged;
 | 
			
		||||
	unmanaged = calloc(1, sizeof(struct xwayland_unmanaged));
 | 
			
		||||
	struct xwayland_unmanaged *unmanaged =
 | 
			
		||||
		xzalloc(sizeof(struct xwayland_unmanaged));
 | 
			
		||||
	unmanaged->server = server;
 | 
			
		||||
	unmanaged->xwayland_surface = xsurface;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue