fix crash caused by use bar instance after it is freed (use-after-free)
This commit is contained in:
parent
21906f07b3
commit
fd478bf2ab
|
@ -54,7 +54,7 @@ class BarIpcClient;
|
||||||
}
|
}
|
||||||
#endif // HAVE_SWAY
|
#endif // HAVE_SWAY
|
||||||
|
|
||||||
class Bar {
|
class Bar : public sigc::trackable {
|
||||||
public:
|
public:
|
||||||
using bar_mode_map = std::map<std::string, struct bar_mode>;
|
using bar_mode_map = std::map<std::string, struct bar_mode>;
|
||||||
static const bar_mode_map PRESET_MODES;
|
static const bar_mode_map PRESET_MODES;
|
||||||
|
|
Loading…
Reference in New Issue