summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/ObjectFactory.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-12-27 05:39:15 -0800
committerMark Spruiell <mes@zeroc.com>2017-12-27 05:39:15 -0800
commitfc1bb7f6d9d6d7ba03ab332c561d38a441cf34b2 (patch)
tree59774a35f6117cc5e6f39a8db21ac91fb75f474b /py/modules/IcePy/ObjectFactory.cpp
parentIceSSL compatibility fixes for OpenSSL 1.1 (diff)
downloadice-fc1bb7f6d9d6d7ba03ab332c561d38a441cf34b2.tar.bz2
ice-fc1bb7f6d9d6d7ba03ab332c561d38a441cf34b2.tar.xz
ice-fc1bb7f6d9d6d7ba03ab332c561d38a441cf34b2.zip
ICE-8496 - Python crash on exit
Diffstat (limited to 'py/modules/IcePy/ObjectFactory.cpp')
-rw-r--r--py/modules/IcePy/ObjectFactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modules/IcePy/ObjectFactory.cpp b/py/modules/IcePy/ObjectFactory.cpp
index 7bf97bb9eb4..7fe72706ab6 100644
--- a/py/modules/IcePy/ObjectFactory.cpp
+++ b/py/modules/IcePy/ObjectFactory.cpp
@@ -97,7 +97,7 @@ IcePy::ObjectFactory::create(const string& id)
//
// Instantiate the object.
//
- PyTypeObject* type = reinterpret_cast<PyTypeObject*>(info->pythonType.get());
+ PyTypeObject* type = reinterpret_cast<PyTypeObject*>(info->pythonType);
PyObjectHandle args = PyTuple_New(0);
PyObjectHandle obj = type->tp_new(type, args.get(), 0);
if(!obj.get())