Skip to content

Conversation

@JWBverheesen
Copy link
Contributor

Tested with Reaper on linux, guiDestroy is invoked when closing the UI, or the parent window the plugin is displayed in. This generates a x11 bad window error: X11 Error: 3

To resolve, reset the unique_ptr app_ by assigning nullptr to it. clap/gui.h states that all resources associated with the gui should be freed.

Tested with Reaper on linux, guiDestroy is invoked when closing the UI, or the parent window the plugin is displayed in. This generates a x11 bad window error: X11 Error: 3

To resolve, reset the unique_ptr app_ by assigning nullptr to it. clap/gui.h states that all resources associated with the gui should be freed.

app_->close();

#if __linux__
Copy link
Member

Choose a reason for hiding this comment

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

A little cleaner to just leave off the #if
Doesn't hurt to have on other systems.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haven't tested on other systems but agreed.

assign nullptr to app on all platforms
@mtytel mtytel merged commit ab713c1 into VitalAudio:main Feb 6, 2026
5 checks passed
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