Skip to content

Fix memory corruption, related to unitialized currentPlay#16

Open
falkTX wants to merge 3 commits intoSVModular:v2.0from
CardinalModules:v2.0
Open

Fix memory corruption, related to unitialized currentPlay#16
falkTX wants to merge 3 commits intoSVModular:v2.0from
CardinalModules:v2.0

Conversation

@falkTX
Copy link

@falkTX falkTX commented May 14, 2022

Under certain conditions, loading a project with DrumKit Sequencer on it would cause a crash.
Main issue seems to be that currentPlay is not initialized during constructor, so random stuff would just go wrong..

See related discussion at DISTRHO/Cardinal#225

Patch fixes the crash, reordering some minor things for looking better and also in a way that makes sense.

Signed-off-by: falkTX <falktx@falktx.com>
@falkTX falkTX mentioned this pull request May 14, 2022
@JerrySievert
Copy link
Collaborator

thanks! I still have been unable to reproduce the issue on macOS. I will give this a run in the next day or so and merge if it looks good.

Signed-off-by: falkTX <falktx@falktx.com>
Signed-off-by: falkTX <falktx@falktx.com>
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