rorywalsh / cabbage

Framework for developing audio plugins with the Csound programming language.
http://cabbageaudio.com
GNU General Public License v3.0
503 stars 35 forks source link

Fix crashes in editor when auto-loading from disk #106

Closed andy-fillebrown closed 3 years ago

andy-fillebrown commented 3 years ago

When auto-loading from disk, CabbagePluginProcessor::triggerCsoundEvents() and CabbagePluginProcessor::setCabbageParameter() crash intermittently due to getCsound() sometimes returning a null pointer. This change avoids the crash by returning early if getCsound() returns a null pointer.