summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-24 16:06:48 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-24 16:40:07 -0300
commit2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd (patch)
tree95e340b5f152b26b9c5df1f2405e81f2b32ef0a5 /generator
parent2e715ed74316704cba426e99ba7fe06ace038ed4 (diff)
downloadshiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.tar.gz
shiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.tar.xz
shiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.zip
Created a new rule to parent ownership.
In the new rule if the child object is a Shiboken wrapper class, the object is not invalidade during the parent destructions, the binding manager will wait for object destructor to invalidade the wrapper. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 7f9c865c..cd7f14ec 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -425,7 +425,7 @@ void CppGenerator::writeDestructorNative(QTextStream &s, const AbstractMetaClass
{
Indentation indentation(INDENT);
s << wrapperName(metaClass) << "::~" << wrapperName(metaClass) << "()" << endl << '{' << endl;
- s << INDENT << "BindingManager::instance().invalidateWrapper(this);" << endl;
+ s << INDENT << "BindingManager::instance().destroyWrapper(this);" << endl;
s << '}' << endl;
}