aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-12-11 12:20:17 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-12-13 15:20:46 +0100
commit9e274fae210d1da1fd253ee602c7258ffc73dca1 (patch)
treefc311d2db1e02c5b581d0548dc60c00d8dfbb588 /lib
parent0cb3d754ae04a5e66855cf6fecac391b5e15924f (diff)
downloadenigma2-9e274fae210d1da1fd253ee602c7258ffc73dca1.tar.gz
enigma2-9e274fae210d1da1fd253ee602c7258ffc73dca1.zip
add missing inc/decref for multicontent template
Diffstat (limited to 'lib')
-rw-r--r--lib/gui/elistboxcontent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index 97e2cc67..a19e11a3 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -501,6 +501,7 @@ eListboxPythonMultiContent::~eListboxPythonMultiContent()
{
Py_XDECREF(m_buildFunc);
Py_XDECREF(m_selectableFunc);
+ Py_XDECREF(m_template);
}
void eListboxPythonMultiContent::setSelectionClip(eRect &rect, bool update)
@@ -1158,5 +1159,7 @@ void eListboxPythonMultiContent::entryRemoved(int idx)
void eListboxPythonMultiContent::setTemplate(ePyObject tmplate)
{
+ Py_XDECREF(m_template);
m_template = tmplate;
+ Py_XINCREF(m_template);
}