Check for NULL devices in CloseDevice().
This commit is contained in:
		
							parent
							
								
									9c30f74221
								
							
						
					
					
						commit
						d61ed6c8a2
					
				| 
						 | 
				
			
			@ -523,6 +523,9 @@ CloseDevice(DeviceIntPtr dev)
 | 
			
		|||
    ScreenPtr screen = screenInfo.screens[0];
 | 
			
		||||
    int j;
 | 
			
		||||
 | 
			
		||||
    if (!dev)
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    if (dev->inited)
 | 
			
		||||
	(void)(*dev->deviceProc)(dev, DEVICE_CLOSE);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue