Merge pull request #4183 from Talbrelliles/custom-module-memory-fix

Memory Fix for continuous scripts in custom module
This commit is contained in:
Alexis Rouillard 2025-06-11 13:18:23 +02:00 committed by GitHub
commit 250f58eed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void waybar::modules::Custom::continuousWorker() {
}
thread_ = [this, cmd] {
char* buff = nullptr;
waybar::util::ScopeGuard buff_deleter([buff]() {
waybar::util::ScopeGuard buff_deleter([&buff]() {
if (buff) {
free(buff);
}