Skip to content

QtFRED fix audio handle guards#7575

Open
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-fix-dialog-close-crash
Open

QtFRED fix audio handle guards#7575
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:qtfred-fix-dialog-close-crash

Conversation

@MjnMixael

Copy link
Copy Markdown
Contributor

The debriefing, command briefing, and campaign editor dialogs in QtFRED would crash if closed without interaction in release builds because the handle int is never initialized and then the later comparison guard is compared against junk data.

Follow the convention of other audio handles, initialize as -1 and compare >= 0 instead.

@MjnMixael MjnMixael added the qtfred A feature or issue related to qtFred. label Jul 7, 2026
@github-project-automation github-project-automation Bot moved this to Work In Progress (PRs) in qtFRED2 Jul 7, 2026
@github-project-automation github-project-automation Bot moved this from Work In Progress (PRs) to In Review (PRs) in qtFRED2 Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qtfred A feature or issue related to qtFred.

Projects

Status: In Review (PRs)

Development

Successfully merging this pull request may close these issues.

2 participants