diff --git a/interface/wx/treebase.h b/interface/wx/treebase.h index 4961f66781..e9eaf7da5d 100644 --- a/interface/wx/treebase.h +++ b/interface/wx/treebase.h @@ -92,6 +92,12 @@ public: /** Sets the item associated with this node. + + Notice that this function is automatically called by wxTreeCtrl methods + associating an object of this class with a tree control item such as + wxTreeCtrl::AppendItem(), wxTreeCtrl::InsertItem() and + wxTreeCtrl::SetItemData() so there is usually no need to call it + yourself. */ void SetId(const wxTreeItemId& id); }; diff --git a/interface/wx/treectrl.h b/interface/wx/treectrl.h index 9e43955598..d4da034876 100644 --- a/interface/wx/treectrl.h +++ b/interface/wx/treectrl.h @@ -774,6 +774,11 @@ public: /** Sets the item client data. + Notice that the client data previously associated with the @a item (if + any) is @em not freed by this function and so calling this function + multiple times for the same item will result in memory leaks unless you + delete the old item data pointer yourself. + @beginWxPythonOnly - @b SetPyData( @a item, @c obj): Associate the given Python Object with the wxTreeItemData for the given item Id.