Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add virtual destructor to surfacerole to avoid undefined behaviour #6620

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

gulafaran
Copy link
Contributor

all classes that will be derived from should have a virtual destructor otherwise deleting an instance via pointer to a base class is undefined behaviour, CLayerShellResource/CXDGSurfaceResource hits this with std::default_delete in the new sharedptr implentation.

all classes that will be derived from should have a virtual destructor
otherwise deleting an instance via pointer to a base class is undefined
behaviour, layershell/xdgshell hits this with std::default_delete in the
new sharedptr implentation.
fix missing includes for no precompiled headers builds, and remove a
redefiniton of a macro already defined in macros.hpp
@gulafaran
Copy link
Contributor Author

gulafaran commented Jun 21, 2024

also added a commit to fix missing includes for no precompiled headers builds and removed a redefinition of HYPRATOMS that already is defined in macros.hpp in the second commit,

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@vaxerski vaxerski merged commit fa02290 into hyprwm:main Jun 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants