Clean up config on exit
parent
7ef8d0b0ae
commit
dcf3b5869c
|
@ -129,11 +129,13 @@ int cfg_load(struct cfg* self, const char* requested_path)
|
|||
goto failure;
|
||||
}
|
||||
|
||||
free(line);
|
||||
fclose(stream);
|
||||
return 0;
|
||||
|
||||
failure:
|
||||
cfg_destroy(self);
|
||||
free(line);
|
||||
fclose(stream);
|
||||
return lineno;
|
||||
}
|
||||
|
|
|
@ -274,6 +274,8 @@ static int init_render_node(int* fd)
|
|||
|
||||
void wayvnc_destroy(struct wayvnc* self)
|
||||
{
|
||||
cfg_destroy(&self->cfg);
|
||||
|
||||
output_list_destroy(&self->outputs);
|
||||
seat_list_destroy(&self->seats);
|
||||
|
||||
|
|
Loading…
Reference in New Issue