mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 10:14:04 +00:00
[all] fix numerous memory leaks at application shutdown
This commit is contained in:
@@ -223,6 +223,12 @@ void option_free(void)
|
||||
state.options = NULL;
|
||||
state.oCount = 0;
|
||||
|
||||
for(int g = 0; g < state.gCount; ++g)
|
||||
{
|
||||
struct OptionGroup * group = &state.groups[g];
|
||||
if (group->options)
|
||||
free(group->options);
|
||||
}
|
||||
free(state.groups);
|
||||
state.groups = NULL;
|
||||
state.gCount = 0;
|
||||
|
Reference in New Issue
Block a user