diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-02-06 15:37:35 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-02-06 15:37:35 +0100 |
commit | cf56800aced9d820b75ddf9d29cc15afe92f7d6f (patch) | |
tree | 8417d1ccc269432f55348ac2d0a46c125e695d4c /python/modules | |
parent | Fixed ICE-7558 - Reduce chances to lose datagrams by tuning the buffer size a... (diff) | |
download | ice-cf56800aced9d820b75ddf9d29cc15afe92f7d6f.tar.bz2 ice-cf56800aced9d820b75ddf9d29cc15afe92f7d6f.tar.xz ice-cf56800aced9d820b75ddf9d29cc15afe92f7d6f.zip |
Fixed ICE-7531 - ValueFactoryManager segfault
Diffstat (limited to 'python/modules')
-rw-r--r-- | python/modules/IcePy/ValueFactoryManager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/modules/IcePy/ValueFactoryManager.cpp b/python/modules/IcePy/ValueFactoryManager.cpp index 5ef221b0d0e..b2bc743a525 100644 --- a/python/modules/IcePy/ValueFactoryManager.cpp +++ b/python/modules/IcePy/ValueFactoryManager.cpp @@ -169,7 +169,13 @@ IcePy::ValueFactoryManager::destroy() { Lock lock(*this); - + if(_self == 0) + { + // + // Nothing to do if already destroyed (this can occur if communicator destroy is called multiple times) + // + return; + } // // Break the cyclic reference. // |