diff --git a/kicad/project_tree.cpp b/kicad/project_tree.cpp index 8c58913698..8c5832a6b7 100644 --- a/kicad/project_tree.cpp +++ b/kicad/project_tree.cpp @@ -61,8 +61,9 @@ PROJECT_TREE::PROJECT_TREE( PROJECT_TREE_PANE* parent ) : PROJECT_TREE::~PROJECT_TREE() { - delete m_imageList; - delete m_statusImageList; + // We pass ownership of these to wxWidgets in SetImageList() and SetStateImageList() + //delete m_imageList; + //delete m_statusImageList; }