diff --git a/extras/the jucer/src/model/components/jucer_TreeViewHandler.h b/extras/the jucer/src/model/components/jucer_TreeViewHandler.h index 48a40e6fe2..76a64d2cb8 100644 --- a/extras/the jucer/src/model/components/jucer_TreeViewHandler.h +++ b/extras/the jucer/src/model/components/jucer_TreeViewHandler.h @@ -136,7 +136,9 @@ private: ~DemoTreeView() { - delete getRootItem(); + TreeViewItem* root = getRootItem(); + setRootItem (0); + delete root; } private: