]> Creatis software - bbtk.git/commit
Nasty bug fix !
authorguigues <guigues>
Wed, 12 Nov 2008 15:42:52 +0000 (15:42 +0000)
committerguigues <guigues>
Wed, 12 Nov 2008 15:42:52 +0000 (15:42 +0000)
commit98ed31c5281f561161d7d75853b7d81c8fa7ede2
tree9fb7148f9ec7d0c115319f772932e032b3e2278e
parent2d2fc4c6349d5040a9f13a240f079e7a1c6687dd
Nasty bug fix !
The 'global execution list' collected black box pointers (i.e. boost::shared_ptr<BlackBox*>) and if it was not reprocessed and thus cleared before exit then BlackBoxes might not be automatically deleted (ref count still > 0). Changed the pointers with weak pointers and correctly checked that they are still valid before using them.
This fixed very nasty bugs in which commands like 'connect A.BoxChange B.BoxExecute' for WxBlackBoxes created apparently random leaks on exit (depending on the order the windows were closed or if they were touched !)
kernel/src/bbtkBlackBox.cxx