aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper_p.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-18 17:35:16 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:18 -0300
commit0a34ce608e76a96c5bf9fbf8b363aaa0256e9396 (patch)
tree211867b05f7e7d6453686d67fbe18f93806ad11c /libshiboken/basewrapper_p.h
parenteb01027ab9266bc0d87fa396e419929567dadea1 (diff)
Fix bug 693 - "Heap corruption or double free reported on program exit"
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/basewrapper_p.h')
-rw-r--r--libshiboken/basewrapper_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h
index ba5275001..f57dc9ca2 100644
--- a/libshiboken/basewrapper_p.h
+++ b/libshiboken/basewrapper_p.h
@@ -82,6 +82,12 @@ struct SbkObjectPrivate
Shiboken::RefCountMap* referredObjects;
};
+/// The type behaviour was not defined yet
+#define BEHAVIOUR_UNDEFINED 0
+/// The type is a value type
+#define BEHAVIOUR_VALUETYPE 1
+/// The type is a object type
+#define BEHAVIOUR_OBJECTTYPE 2
struct SbkObjectTypePrivate
{
@@ -101,6 +107,8 @@ struct SbkObjectTypePrivate
int is_multicpp:1;
/// True if this type was definied by the user.
int is_user_type:1;
+ /// Tells is the type is a value type or an object-type, see BEHAVIOUR_* constants.
+ int type_behaviour:2;
/// C++ name
char* original_name;
/// Type user data