From 6181be3fd8fa44037201a6e29cf6f4f98e88be4b Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Fri, 25 Jun 2021 15:47:28 -0400 Subject: [PATCH] Fix build when DGL_FILE_BROWSER_DISABLED is defined (#293) * Fix build with DGL_FILE_BROWSER_DISABLED * Check for !DISTRHO_PLUGIN_HAS_EXTERNAL_UI too --- distrho/src/DistrhoUIPrivateData.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distrho/src/DistrhoUIPrivateData.hpp b/distrho/src/DistrhoUIPrivateData.hpp index be0742f6..b8876090 100644 --- a/distrho/src/DistrhoUIPrivateData.hpp +++ b/distrho/src/DistrhoUIPrivateData.hpp @@ -152,7 +152,9 @@ struct UI::PrivateData { ~PrivateData() noexcept { +#if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI && !defined(DGL_FILE_BROWSER_DISABLED) std::free(uiStateFileKeyRequest); +#endif } void editParamCallback(const uint32_t rindex, const bool started)