Skip to content

Commit

Permalink
Merge pull request #3531 from yangyingchao/master
Browse files Browse the repository at this point in the history
fix crash caused by use bar instance after it is freed (use-after-free)
  • Loading branch information
Alexays authored Aug 19, 2024
2 parents 21906f0 + fd478bf commit c5a4266
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 c5a4266

Please sign in to comment.