Browse Source

Prevent wrong SaveState leak detection on close

tags/1.9.4
falkTX 11 years ago
parent
commit
8f6bb6c821
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      source/backend/engine/CarlaEngine.cpp
  2. +3
    -0
      source/utils/CarlaStateUtils.hpp

+ 3
- 0
source/backend/engine/CarlaEngine.cpp View File

@@ -1196,6 +1196,9 @@ bool CarlaEngine::loadProject(const char* const filename)
node = node.nextSibling();
}

// prevent wrong leak detection on close
getSaveStateDictFromXML(QDomNode());

return true;
}



+ 3
- 0
source/utils/CarlaStateUtils.hpp View File

@@ -226,6 +226,9 @@ const SaveState& getSaveStateDictFromXML(const QDomNode& xmlNode)
static SaveState saveState;
saveState.reset();

if (xmlNode.isNull())
return saveState;

QDomNode node(xmlNode.firstChild());

while (! node.isNull())


Loading…
Cancel
Save