# HG changeset patch # User Chris Cannam # Date 1228411026 0 # Node ID bd4db63b085e47cca360e5b667ee450846c9c915 # Parent e75f15c9ea1169c232922806b3465269ee9539ac * minor stuff diff -r e75f15c9ea11 -r bd4db63b085e layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Wed Dec 03 16:25:47 2008 +0000 +++ b/layer/SpectrumLayer.cpp Thu Dec 04 17:17:06 2008 +0000 @@ -49,7 +49,7 @@ { Model *m = const_cast (static_cast(m_sliceableModel)); - m->aboutToDelete(); + if (m) m->aboutToDelete(); m_sliceableModel = 0; delete m; }