Skip to content

Commit

Permalink
fix crash caused by use bar instance after it is freed (use-after-free)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyingchao committed Aug 19, 2024
1 parent 21906f0 commit fd478bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/bar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd478bf

Please sign in to comment.