diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2011-01-07 15:54:12 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:52 -0300 |
commit | 6cf68bf8a199543f2a974e4c318225bdc0c138c9 (patch) | |
tree | 8b98e257ac60dc9b147254a4ce757ac288dee91f /libshiboken | |
parent | 57c3abba8b09fdb3f9fc2ddccaf5efce3edace31 (diff) |
Initialize ShibokenObject private data.
This avoid errors during the functions call which uses the private data.
Fixes bug #589
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/basewrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index 65de6e866..a44a6bf95 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -334,6 +334,9 @@ void init() initTypeResolver(); PyEval_InitThreads(); + //Init private data + Shiboken::ObjectType::initPrivateData(&SbkObject_Type); + if (PyType_Ready(&SbkEnumType_Type) < 0) Py_FatalError("[libshiboken] Failed to initialise Shiboken.SbkEnumType metatype."); |