Hi,
yes. Best, Stefan ________________________________ Von: Alex Melville <amelv...@umich.edu> Gesendet: Dienstag, 17. November 2020 20:33 An: mitk-users@lists.sourceforge.net Betreff: [mitk-users] Do I need to manually free a mitk::DataNode's BaseData before using mitk::DataStorage::Remove()? Hello, Looking at the MITK source, it appears that deleting a node from mitk::DataStorage should automatically free the node's BaseData if there's nothing else using it, but I just wanted to make 100% sure. - mitk::BaseData does inherit from itk::DataObject - m_Data in mitk::DataNode is stored as a smart pointer Based on that, I would guess that the right course of action would be to just delete the DataNode from DataStorage and let the automatic pointer system free it (when its reference count goes to zero). Does that make sense? Can somebody confirm this? Thanks, - Alex
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users