mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[client/common] fixes for issues detected through static analysis.
This commit is contained in:
		| @@ -57,6 +57,12 @@ void waylandWindowUpdateScale(void) | ||||
| static void wlSurfaceEnterHandler(void * data, struct wl_surface * surface, struct wl_output * output) | ||||
| { | ||||
|   struct SurfaceOutput * node = malloc(sizeof(*node)); | ||||
|   if (!node) | ||||
|   { | ||||
|     DEBUG_ERROR("out of memory"); | ||||
|     return; | ||||
|   } | ||||
|  | ||||
|   node->output = output; | ||||
|   wl_list_insert(&wlWm.surfaceOutputs, &node->link); | ||||
|   waylandWindowUpdateScale(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae