mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix memory leak in title_format command
This commit is contained in:
		
							parent
							
								
									228c478e8d
								
							
						
					
					
						commit
						d10a0a8c41
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -23,7 +23,7 @@ struct cmd_results *cmd_title_format(int argc, char **argv) {
 | 
				
			||||||
	if (view->title_format) {
 | 
						if (view->title_format) {
 | 
				
			||||||
		free(view->title_format);
 | 
							free(view->title_format);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	view->title_format = strdup(format);
 | 
						view->title_format = format;
 | 
				
			||||||
	view_update_title(view, true);
 | 
						view_update_title(view, true);
 | 
				
			||||||
	config_find_font_height(true);
 | 
						config_find_font_height(true);
 | 
				
			||||||
	arrange_root();
 | 
						arrange_root();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue