mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] all: don't combine the downsampler rules
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user