[host] all: don't combine the downsampler rules

This commit is contained in:
Geoffrey McRae
2023-11-08 22:52:26 +11:00
parent 905fea57f0
commit d592f13f88
6 changed files with 43 additions and 19 deletions

View File

@@ -51,6 +51,7 @@ struct Option
char * description;
const char shortopt;
bool preset;
void * opaque;
enum OptionType type;
union
@@ -67,6 +68,7 @@ struct Option
bool (*validator)(struct Option * opt, const char ** error);
char * (*toString )(struct Option * opt);
StringList (*getValues)(struct Option * opt);
void (*cleanup )(struct Option * opt);
void (*printHelp)(void);

View File

@@ -280,6 +280,9 @@ void option_free(void)
for(int i = 0; i < state.oCount; ++i)
{
struct Option * o = state.options[i];
if (o->cleanup)
o->cleanup(o);
if (o->type == OPTION_TYPE_STRING && o->value.x_string)
free(o->value.x_string);
free(o);