diff options
| author | Drew DeVault <[email protected]> | 2015-12-20 09:20:03 -0500 | 
|---|---|---|
| committer | Drew DeVault <[email protected]> | 2015-12-20 09:20:03 -0500 | 
| commit | 702cf053e2a14680e57db07416fd440e0f3009a8 (patch) | |
| tree | 8fb99faee809724c4669ebb787abdc389f0ffe1a /sway | |
| parent | 05e48835f71e8d364d3ac5e29bdb6bf056c2e570 (diff) | |
| parent | 2779559b153696daab8ce0d4c0ad9066d2353f8a (diff) | |
Merge pull request #370 from sce/fix_free_bar
config: free_bar: Check if outputs is NULL.
Diffstat (limited to 'sway')
| -rw-r--r-- | sway/config.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/sway/config.c b/sway/config.c index faa3e387..42605f49 100644 --- a/sway/config.c +++ b/sway/config.c @@ -53,7 +53,9 @@ static void free_bar(struct bar_config *bar) {  	}  	list_free(bar->bindings); -	free_flat_list(bar->outputs); +	if (bar->outputs) { +		free_flat_list(bar->outputs); +	}  	free(bar);  } | 
