diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-03-23 18:19:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:18 -0300 |
commit | d7fa80decce5b37a4bc77d2bb61768414ead8be7 (patch) | |
tree | b2a0d16a606be75f1c6ee7fc46940743160cd1eb /libshiboken | |
parent | 0882f35b2d010515593ee3ddfe64e94f7f9942e5 (diff) |
Do nothing when trying to make an valid object valid twice.
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/basewrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index ac3eb07e6..310ce2b12 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -749,7 +749,7 @@ void invalidate(SbkObject* self) void makeValid(SbkObject* self) { // Skip if this object not is a valid object - if (!self || ((PyObject*)self == Py_None)) + if (!self || ((PyObject*)self == Py_None) || self->d->validCppObject) return; // Mark object as invalid only if this is not a wrapper class |