mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-06 19:50:11 +02:00
Add back path free calls on linux only
This commit is contained in:
@@ -215,6 +215,9 @@ namespace NAM {
|
||||
store(handle, nam->uris.model_Path, apath, strlen(apath) + 1, nam->uris.atom_Path,
|
||||
LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE);
|
||||
|
||||
#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
|
||||
free(apath);
|
||||
#endif
|
||||
return LV2_STATE_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -251,6 +254,10 @@ namespace NAM {
|
||||
memcpy(msg.path, path, size);
|
||||
nam->schedule->schedule_work(nam->schedule->handle, sizeof(msg), &msg);
|
||||
|
||||
#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
|
||||
free(path);
|
||||
#endif
|
||||
|
||||
return LV2_STATE_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user