Skip to content

Commit

Permalink
ImageEffect::clearPersistentMessage: clearPersistentMessage contains …
Browse files Browse the repository at this point in the history
…garbage on Resolve
  • Loading branch information
devernay committed Jun 7, 2018
1 parent 31a5eb8 commit 1ddffff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Support/Library/ofxsImageEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2642,8 +2642,10 @@ namespace OFX {
}

OFX::Message::MessageReplyEnum ImageEffect::clearPersistentMessage(bool throwIfMissing)
{
if (!OFX::Private::gMessageSuiteV2 || !OFX::Private::gMessageSuiteV2->clearPersistentMessage) {
{
// If there is no setPersistentMessage, clearPersistentMessage has no reason to exist.
// (fixes crash on Resolve)
if (!OFX::Private::gMessageSuiteV2 || !OFX::Private::gMessageSuiteV2->setPersistentMessage || !OFX::Private::gMessageSuiteV2->clearPersistentMessage) {
if (throwIfMissing) {
OFX::Log::error(true, "OfxMessageSuiteV2::clearPersistentMessage() not available");
throwHostMissingSuiteException("clearPersistentMessage");
Expand Down

0 comments on commit 1ddffff

Please sign in to comment.