Skip to content

Commit

Permalink
Also add a defensive guard against malformed claps. In clap in
Browse files Browse the repository at this point in the history
bitwig resizing a destroyed gui would post a misbehaving error
but in the vst3 we would crash absent this guard. Just a defensive
check.
  • Loading branch information
baconpaul committed Aug 13, 2024
1 parent 25f7da2 commit 339d870
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,10 @@ bool ClapAsVst3::gui_can_resize()

bool ClapAsVst3::gui_request_resize(uint32_t width, uint32_t height)
{
return _wrappedview->request_resize(width, height);
if (_wrappedview)
return _wrappedview->request_resize(width, height);
else
return false;
}

bool ClapAsVst3::gui_request_show()
Expand Down

0 comments on commit 339d870

Please sign in to comment.