mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-17 00:12:53 +02:00
Fixing memory leak on update UPower tooltip
This commit is contained in:
@@ -85,6 +85,12 @@ int main(int argc, char* argv[]) {
|
||||
waybar::Client::inst()->reset();
|
||||
});
|
||||
|
||||
std::signal(SIGINT, [](int /*signal*/) {
|
||||
spdlog::info("Quitting.");
|
||||
reload = false;
|
||||
waybar::Client::inst()->reset();
|
||||
});
|
||||
|
||||
for (int sig = SIGRTMIN + 1; sig <= SIGRTMAX; ++sig) {
|
||||
std::signal(sig, [](int sig) {
|
||||
for (auto& bar : waybar::Client::inst()->bars) {
|
||||
|
Reference in New Issue
Block a user