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

fix memleak for styles popup #18279

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

ralfbrown
Copy link
Collaborator

gtk_get_current_event() returns a copy which must be freed, but wasn't. It is also documented as potentially returning NULL, so add a null check as well.

Pointed out by Diederik on 18186.

gtk_get_current_event() returns a copy which must be freed, but
wasn't.  It is also documented as potentially returning NULL, so add a
null check as well.
@ralfbrown ralfbrown added the bugfix pull request fixing a bug label Jan 23, 2025
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

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

Thanks!

@TurboGit TurboGit merged commit 28426d2 into darktable-org:master Jan 25, 2025
6 checks passed
@TurboGit TurboGit modified the milestones: 5.2, 5.0.1 Jan 25, 2025
@TurboGit
Copy link
Member

Merged in master and 5.0.x branch.

@ralfbrown ralfbrown deleted the event_free branch January 25, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants