fix crash caused by use bar instance after it is freed (use-after-free)

This commit is contained in:
yangyingchao 2024-08-19 12:35:52 +08:00
parent 21906f07b3
commit fd478bf2ab
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;