summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-23 18:19:54 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-03-25 11:32:54 -0300
commit2e026d26caa4b7005c17d2e00271358093529a0a (patch)
tree6e877021a6ac20f8395476fd629fbc289baf7a49
parentf5c5a9770c7206dd426483d38a0b2b93140f5062 (diff)
downloadshiboken-2e026d26caa4b7005c17d2e00271358093529a0a.tar.gz
shiboken-2e026d26caa4b7005c17d2e00271358093529a0a.tar.xz
shiboken-2e026d26caa4b7005c17d2e00271358093529a0a.zip
Do nothing when trying to make an valid object valid twice.
-rw-r--r--libshiboken/basewrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 5800ba04..ba4911f2 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -748,7 +748,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