summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-06 16:59:14 +0100
committerRobin Gareus <robin@gareus.org>2020-01-06 16:59:14 +0100
commit64b43a6b95557610b5126fa14844849e30c4239c (patch)
tree9ba5df9c6c408cc088d8a2da61ce0b2538ff4ebc
parent2afef6e4bde3b1549d03f936faca0e84bcab7282 (diff)
Fix windows fallback for LV2 state:freePath feature
-rw-r--r--libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc
index 9890317a43..cc656b56c1 100644
--- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc
+++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc
@@ -751,11 +751,11 @@ save (LV2_Handle instance,
free_path->free_path (free_path->handle, apath);
} else
#endif
-#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
{
+#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
free (apath);
- }
#endif
+ }
return LV2_STATE_SUCCESS;
}
@@ -808,11 +808,11 @@ restore (LV2_Handle instance,
free_path->free_path (free_path->handle, apath);
} else
#endif
-#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
{
+#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
free (apath);
- }
#endif
+ }
}
return LV2_STATE_SUCCESS;
}