summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-07 15:54:12 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-07 19:14:00 -0300
commita0186b6c830f17ccbbf97cc234c9d903e16cc456 (patch)
tree4e04dab3f4cf1008131ae7993b605c8855dc4934
parent635ae97b304dae295bf15d666c06c6e67660629b (diff)
downloadshiboken-a0186b6c830f17ccbbf97cc234c9d903e16cc456.tar.gz
shiboken-a0186b6c830f17ccbbf97cc234c9d903e16cc456.tar.xz
shiboken-a0186b6c830f17ccbbf97cc234c9d903e16cc456.zip
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>
-rw-r--r--libshiboken/basewrapper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 8c0c2886..1f0327b7 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -333,6 +333,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.");