Simplify xunloadfonts.
This commit is contained in:
		 noname
					noname
				
			
				
					committed by
					
						 Roberto E. Vargas Caballero
						Roberto E. Vargas Caballero
					
				
			
			
				
	
			
			
			 Roberto E. Vargas Caballero
						Roberto E. Vargas Caballero
					
				
			
						parent
						
							74962bf566
						
					
				
				
					commit
					0e439e5624
				
			
							
								
								
									
										8
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								st.c
									
									
									
									
									
								
							| @@ -2993,13 +2993,9 @@ xunloadfont(Font *f) { | |||||||
|  |  | ||||||
| void | void | ||||||
| xunloadfonts(void) { | xunloadfonts(void) { | ||||||
| 	int i; |  | ||||||
|  |  | ||||||
| 	/* Free the loaded fonts in the font cache.  */ | 	/* Free the loaded fonts in the font cache.  */ | ||||||
| 	for(i = 0; i < frclen; i++) { | 	while(frclen > 0) | ||||||
| 		XftFontClose(xw.dpy, frc[i].font); | 		XftFontClose(xw.dpy, frc[--frclen].font); | ||||||
| 	} |  | ||||||
| 	frclen = 0; |  | ||||||
|  |  | ||||||
| 	xunloadfont(&dc.font); | 	xunloadfont(&dc.font); | ||||||
| 	xunloadfont(&dc.bfont); | 	xunloadfont(&dc.bfont); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user