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

wl: Fix possible invalid access to Platform:popup #643

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

psaavedra
Copy link
Member

@psaavedra psaavedra commented Nov 1, 2023

... inducted by the the xdg_popup::popup_done handler.

This change fixes the xdg_popup_on_popup_done() in platform/wayland/cog-utils-wl.c. Now, the function resets the the Platform::popup if the destroyed popup is the same than the one
referenced in the Platform.

@psaavedra psaavedra requested a review from aperezdc November 1, 2023 14:34
@psaavedra psaavedra self-assigned this Nov 1, 2023
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-624-fix-leak branch from c6a82e5 to 1e1c5a2 Compare November 1, 2023 14:34
Base automatically changed from psaavedra/main-refactorings-624 to master November 1, 2023 14:36
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-624-fix-leak branch from 1e1c5a2 to cbb4676 Compare November 1, 2023 14:37
... inducted by the the xdg_popup::popup_done handler.

This change fixes the `xdg_popup_on_popup_done()` in
platform/wayland/cog-utils-wl.c. Now, the function resets the
the Platform::popup if the destroyed popup is the same than the one
referenced in the Platform.
@psaavedra psaavedra force-pushed the psaavedra/main-refactorings-624-fix-leak branch from cbb4676 to 32c8c80 Compare November 1, 2023 14:41
@psaavedra psaavedra changed the title wl: Fix possible leak in the xdg_popup::popup_done handler wl: Fix possible invalid access to Platform:popup Nov 1, 2023
Copy link
Member

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

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

r=me, thanks!

@psaavedra psaavedra merged commit ffc1a86 into master Nov 1, 2023
5 checks passed
@psaavedra psaavedra deleted the psaavedra/main-refactorings-624-fix-leak branch November 1, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants