fix:dwl tag crash when use wlr-randr enable monitor

This commit is contained in:
DreamMaoMao 2024-03-16 20:10:05 +08:00
parent 8174dce776
commit c5a6299398
1 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,9 @@ Tags::Tags(const std::string &id, const waybar::Bar &bar, const Json::Value &con
} }
Tags::~Tags() { Tags::~Tags() {
if(output_status_) {
zdwl_ipc_output_v2_destroy(output_status_);
}
if (status_manager_) { if (status_manager_) {
zdwl_ipc_manager_v2_destroy(status_manager_); zdwl_ipc_manager_v2_destroy(status_manager_);
} }