mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 Abdelhakeem Osama
					Abdelhakeem Osama
				
			
				
					committed by
					
						 Justin M. Keyes
						Justin M. Keyes
					
				
			
			
				
	
			
			
			 Justin M. Keyes
						Justin M. Keyes
					
				
			
						parent
						
							34e4166673
						
					
				
				
					commit
					2e621553c0
				
			| @@ -2698,6 +2698,9 @@ void win_free_all(void) | |||||||
|     win_T *wp = lastwin; |     win_T *wp = lastwin; | ||||||
|     win_remove(lastwin, NULL); |     win_remove(lastwin, NULL); | ||||||
|     (void)win_free_mem(wp, &dummy, NULL); |     (void)win_free_mem(wp, &dummy, NULL); | ||||||
|  |     if (wp == aucmd_win) { | ||||||
|  |       aucmd_win = NULL; | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   if (aucmd_win != NULL) { |   if (aucmd_win != NULL) { | ||||||
|   | |||||||
| @@ -1510,5 +1510,10 @@ describe('API', function() | |||||||
|                             | |                             | | ||||||
|       ]]) |       ]]) | ||||||
|     end) |     end) | ||||||
|  |  | ||||||
|  |     it('does not cause heap-use-after-free on exit while setting options', function() | ||||||
|  |       command('au OptionSet * q') | ||||||
|  |       command('silent! call nvim_create_buf(0, 1)') | ||||||
|  |     end) | ||||||
|   end) |   end) | ||||||
| end) | end) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user