Fix memleak
This commit is contained in:
		
							parent
							
								
									280ec456a4
								
							
						
					
					
						commit
						1e6a15de00
					
				| @ -106,12 +106,17 @@ void load_settings(char *cmdline_config_path) | |||||||
|               "Using STATIC_CONFIG is deprecated behavior."); |               "Using STATIC_CONFIG is deprecated behavior."); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|         log_set_level_from_string(option_get_string( |         { | ||||||
|  |                 char *loglevel = option_get_string( | ||||||
|                                 "global", |                                 "global", | ||||||
|                                 "verbosity", "-verbosity", NULL, |                                 "verbosity", "-verbosity", NULL, | ||||||
|                 "The verbosity to log (one of 'info', 'mesg', 'warn', 'crit')" |  | ||||||
|                                 "The verbosity to log (one of 'crit', 'warn', 'mesg', 'info', 'debug')" |                                 "The verbosity to log (one of 'crit', 'warn', 'mesg', 'info', 'debug')" | ||||||
|         )); |                         ); | ||||||
|  | 
 | ||||||
|  |                 log_set_level_from_string(loglevel); | ||||||
|  | 
 | ||||||
|  |                 g_free(loglevel); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         settings.per_monitor_dpi = option_get_bool( |         settings.per_monitor_dpi = option_get_bool( | ||||||
|                 "experimental", |                 "experimental", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine