Carrying over r11173 fix to the new 1.3 porting branch.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano
2016-03-14 17:20:59 +00:00
parent aeaf3b1586
commit 91e747bbda
+5
View File
@@ -116,6 +116,11 @@ Fl_Tree_Item::~Fl_Tree_Item() {
_usericon = 0; // user handled allocation
#if FLTK_ABI_VERSION >= 10304
if ( _userdeicon ) delete _userdeicon; // delete our copy (if any) for deactivated icon
#endif
#if FLTK_ABI_VERSION >= 10303
// focus item? set to null
if ( _tree && this == _tree->_item_focus )
{ _tree->_item_focus = 0; }
#endif
//_children.clear(); // array's destructor handles itself
}