aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-05-03 17:05:18 -0300
committerLauro Neto <lauro.neto@openbossa.org>2010-05-03 17:41:26 -0300
commitfdb03104bf19ba029915ad69fc8337785a6d498d (patch)
tree522eb6aa7cff293ea0a2177825ff30b84a6078ee
parent6d2bdf8907edfcef88cd38530778a9e3500f0886 (diff)
Fix Phonon.path.[sink|source]() return ownership
Was leaking references and segfaulting on exit. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
-rw-r--r--PySide/phonon/typesystem_phonon.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/PySide/phonon/typesystem_phonon.xml b/PySide/phonon/typesystem_phonon.xml
index ab098b0b9..1a2a486e6 100644
--- a/PySide/phonon/typesystem_phonon.xml
+++ b/PySide/phonon/typesystem_phonon.xml
@@ -109,6 +109,16 @@
<parent index="this" action="remove"/>
</modify-argument>
</modify-function>
+ <modify-function signature="sink() const">
+ <modify-argument index="return">
+ <define-ownership class="target" owner="default"/>
+ </modify-argument>
+ </modify-function>
+ <modify-function signature="source() const">
+ <modify-argument index="return">
+ <define-ownership class="target" owner="default"/>
+ </modify-argument>
+ </modify-function>
</value-type>
<value-type name="Phonon::ObjectDescription" generate="no"/>
<value-type name="Phonon::EffectDescription">