mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-30 23:42:42 +01:00 
			
		
		
		
	Fix segfault in destructor
This commit is contained in:
		| @@ -148,10 +148,11 @@ Tags::Tags(const std::string &id, const waybar::Bar &bar, const Json::Value &con | ||||
|   zdwl_output_v1_add_listener(output_status_, &output_status_listener_impl, this); | ||||
|  | ||||
|   zdwl_manager_v1_destroy(status_manager_); | ||||
|   status_manager_ = nullptr; | ||||
| } | ||||
|  | ||||
| Tags::~Tags() { | ||||
|   if (output_status_) { | ||||
|   if (status_manager_) { | ||||
|     zdwl_manager_v1_destroy(status_manager_); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Delarosa
					David Delarosa