commit ff02c92bba0f262a8fe546a926b500cbbfa6e681
parent 1cc5be5cd1dab5860f31009239795946ecc0765c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 22 Apr 2021 16:27:21 +0200
Fix the parsing of the geometry option
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/core/htrdr_args.c b/src/core/htrdr_args.c
@@ -357,8 +357,6 @@ parse_geometry_parameter(const char* str, void* ptr)
goto error;
}
- htrdr_args_geometry_free(geom);
-
#define SET_VALUE(Key, Val, Str) { \
const size_t len = strlen(Val) + 1; \
Str = mem_alloc(len); \
@@ -440,6 +438,8 @@ htrdr_args_geometry_parse(struct htrdr_args_geometry* geom, const char* str)
goto error;
}
+ htrdr_args_geometry_free(geom);
+
res = cstr_parse_list(str, ':', parse_geometry_parameter, geom);
if(res != RES_OK) goto error;