summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/glue/qlayout_help_functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/QtGui/glue/qlayout_help_functions.h')
-rw-r--r--PySide/QtGui/glue/qlayout_help_functions.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/PySide/QtGui/glue/qlayout_help_functions.h b/PySide/QtGui/glue/qlayout_help_functions.h
index 90c950a..6912fc8 100644
--- a/PySide/QtGui/glue/qlayout_help_functions.h
+++ b/PySide/QtGui/glue/qlayout_help_functions.h
@@ -63,9 +63,8 @@ inline void addLayoutOwnership(QLayout* layout, QLayoutItem* item)
addLayoutOwnership(layout, l);
}
- Shiboken::AutoDecRef pyParent(Shiboken::Converter<QLayout*>::toPython(layout));
Shiboken::AutoDecRef pyChild(Shiboken::Converter<QLayoutItem*>::toPython(item));
- Shiboken::Object::setParent(pyParent, pyChild);
+ Shiboken::Object::releaseOwnership(pyChild);
}
#endif