# HG changeset patch # User Chris Cannam # Date 1221754094 0 # Node ID 6d2e49c59b3bc726f61ce72356453eaac22e3094 # Parent b742f579ced03467fd8c4e3f876899d73408ad97 * Add region model and layer; improve assignment of model types to feature extraction transforms with duration diff -r b742f579ced0 -r 6d2e49c59b3b framework/Document.cpp --- a/framework/Document.cpp Thu Sep 18 12:33:30 2008 +0000 +++ b/framework/Document.cpp Thu Sep 18 16:08:14 2008 +0000 @@ -220,6 +220,9 @@ if (types.empty()) { std::cerr << "WARNING: Document::createLayerForTransformer: no valid display layer for output of transform " << transform.getIdentifier().toStdString() << std::endl; + newModel->aboutToDelete(); + emit modelAboutToBeDeleted(newModel); + m_models.erase(newModel); delete newModel; return 0; }