diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-07-09 10:33:09 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-07-09 11:06:13 -0300 |
commit | e50766012453a22e1f4ee37a1112bd8b03b97124 (patch) | |
tree | fb9c4d4a47584da3ff3e91ae559cc984337d3529 | |
parent | 4090ef81efcada5bd6f882e1c91cd3a699c9c034 (diff) |
Fixed memory leak on state machine classes.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 5fe62ed2a..56c4f894d 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -2191,22 +2191,24 @@ <modify-function signature="targetState() const"> <modify-argument index="return"> - <define-ownership class="target" owner="default"/> + <reference-count action="add" variable-name="setTargetState(QAbstractState*)1" /> + </modify-argument> + </modify-function> + + + <modify-function signature="targetStates() const"> + <modify-argument index="return"> + <reference-count action="add" variable-name="setTargetState(QAbstractState*)1" /> </modify-argument> </modify-function> + <modify-function signature="setTargetStates(QList<QAbstractState*>)"> - <inject-code class="target" position="beginning"> - // The normal here would be to use the 'reference-count' tag but this - // method is strongly tied to 'setTargetState' since both affect the same - // internal value in QAbstractTransition. - Shiboken::keepReference(reinterpret_cast<SbkBaseWrapper*>(%PYSELF), "setTargetState(QAbstractState*)1", %PYARG_1); - </inject-code> + <modify-argument index="1"> + <reference-count action="add" variable-name="setTargetState(QAbstractState*)1" /> + </modify-argument> </modify-function> - <!-- http://bugs.openbossa.org/show_bug.cgi?id=123 - <modify-function signature="setTargetStates(QList<QAbstractState*>)" remove="all"/> - <modify-function signature="targetStates() const " remove="all"/>--> </object-type> <object-type name="QAnimationGroup"> |