mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
LV2 Host: Fix leak of LV2 path when calling lilv_world_set_option multiple times
This commit is contained in:
parent
1843554ad8
commit
eef9183fad
2 changed files with 7 additions and 4 deletions
|
|
@ -1,11 +1,13 @@
|
|||
The source code for lilv and its dependent libraries have been copied into this
|
||||
directory. The following modifications were made:
|
||||
|
||||
- Removed files not strictly required to build the lilv library,
|
||||
including generated config headers
|
||||
- Removed files not strictly required to build the lilv library, including
|
||||
generated config headers
|
||||
- Added handwritten config headers
|
||||
- Removed the include of dlfcn.h in world.c
|
||||
- Fixed a leak of world->opt.lv2_path when calling lilv_world_set_option
|
||||
multiple times
|
||||
|
||||
Remember to update the versions in the config headers if you ever update
|
||||
the library versions!
|
||||
Remember to update the versions in the config headers if you ever update the
|
||||
library versions!
|
||||
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ lilv_world_set_option(LilvWorld* world, const char* uri, const LilvNode* value)
|
|||
}
|
||||
} else if (!strcmp(uri, LILV_OPTION_LV2_PATH)) {
|
||||
if (lilv_node_is_string(value)) {
|
||||
free(world->opt.lv2_path);
|
||||
world->opt.lv2_path = lilv_strdup(lilv_node_as_string(value));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue