Fix windows fallback for LV2 state:freePath feature

This commit is contained in:
Robin Gareus 2020-01-06 16:59:14 +01:00
parent 2afef6e4bd
commit 64b43a6b95
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -751,11 +751,11 @@ save (LV2_Handle instance,
free_path->free_path (free_path->handle, apath); free_path->free_path (free_path->handle, apath);
} else } else
#endif #endif
#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
{ {
#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
free (apath); free (apath);
}
#endif #endif
}
return LV2_STATE_SUCCESS; return LV2_STATE_SUCCESS;
} }
@ -808,11 +808,11 @@ restore (LV2_Handle instance,
free_path->free_path (free_path->handle, apath); free_path->free_path (free_path->handle, apath);
} else } else
#endif #endif
#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
{ {
#ifndef _WIN32 // https://github.com/drobilla/lilv/issues/14
free (apath); free (apath);
}
#endif #endif
}
} }
return LV2_STATE_SUCCESS; return LV2_STATE_SUCCESS;
} }