mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
config: config_free(): pass conf struct by pointer, not by-value
This commit is contained in:
parent
06d7432af3
commit
99db7aa7cf
5 changed files with 49 additions and 49 deletions
2
server.c
2
server.c
|
|
@ -122,7 +122,7 @@ instance_destroy(struct terminal_instance *instance, int exit_code)
|
|||
/* TODO: clone server conf completely, so that we can just call
|
||||
* conf_destroy() here */
|
||||
if (instance->conf != NULL) {
|
||||
config_free(*instance->conf);
|
||||
config_free(instance->conf);
|
||||
free(instance->conf);
|
||||
}
|
||||
free(instance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue