mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Do not check flags after the popup struct has been freed.
This commit is contained in:
		
							
								
								
									
										5
									
								
								popup.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								popup.c
									
									
									
									
									
								
							| @@ -346,9 +346,8 @@ popup_job_complete_cb(struct job *job) | ||||
| 		pd->status = 0; | ||||
| 	pd->job = NULL; | ||||
|  | ||||
| 	if (pd->flags & POPUP_CLOSEEXIT) | ||||
| 		server_client_clear_overlay(pd->c); | ||||
| 	if ((pd->flags & POPUP_CLOSEEXITZERO) && pd->status == 0) | ||||
| 	if ((pd->flags & POPUP_CLOSEEXIT) || | ||||
| 	    ((pd->flags & POPUP_CLOSEEXITZERO) && pd->status == 0)) | ||||
| 		server_client_clear_overlay(pd->c); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm