From 4100e47d4c13dc7e5fc6b087be442ac3c1237896 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 4 Apr 2025 22:09:33 +0200 Subject: [PATCH] Fix memory leak in X11 webview Signed-off-by: falkTX --- distrho/extra/WebViewImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/distrho/extra/WebViewImpl.cpp b/distrho/extra/WebViewImpl.cpp index 88db22b4..74cb171b 100644 --- a/distrho/extra/WebViewImpl.cpp +++ b/distrho/extra/WebViewImpl.cpp @@ -773,8 +773,10 @@ void webViewIdle(const WebViewHandle handle) d_stderr("server ringbuffer data race, abort!"); handle->rbctrl2.flush(); - return; + break; } + + std::free(buffer); #else // unused (void)handle;