mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	fix a use after free
This line makes dwl crash after closing mpv with the switchtotag patch.
This commit is contained in:
		
							parent
							
								
									9c05b9622c
								
							
						
					
					
						commit
						42766e7b59
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		
							
								
								
									
										1
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -1171,7 +1171,6 @@ void
 | 
				
			||||||
destroydecoration(struct wl_listener *listener, void *data)
 | 
					destroydecoration(struct wl_listener *listener, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	Client *c = wl_container_of(listener, c, destroy_decoration);
 | 
						Client *c = wl_container_of(listener, c, destroy_decoration);
 | 
				
			||||||
	c->decoration = NULL;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_list_remove(&c->destroy_decoration.link);
 | 
						wl_list_remove(&c->destroy_decoration.link);
 | 
				
			||||||
	wl_list_remove(&c->set_decoration_mode.link);
 | 
						wl_list_remove(&c->set_decoration_mode.link);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue