Merge pull request #3531 from yangyingchao/master

fix crash caused by use bar instance after it is freed (use-after-free)
This commit is contained in:
Alexis Rouillard 2024-08-19 09:05:30 +02:00 committed by GitHub
commit c5a4266329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class BarIpcClient;
}
#endif // HAVE_SWAY
class Bar {
class Bar : public sigc::trackable {
public:
using bar_mode_map = std::map<std::string, struct bar_mode>;
static const bar_mode_map PRESET_MODES;