aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.cpp
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-12-20 12:18:19 +0100
committerAndreas Oberritter <obi@opendreambox.org>2010-12-20 12:18:19 +0100
commit16c07b98245e94a162685803acd4ba4b5d4298a3 (patch)
treee44802522d3c141ccc98e52a80016b862f60cf55 /lib/gui/elistboxcontent.cpp
parent0fff842a5f2b4185257aadb6b6a3dfa033a91d72 (diff)
parent0cbccde1b0264df7a0a5f8723b8de881f0d5f927 (diff)
downloadenigma2-16c07b98245e94a162685803acd4ba4b5d4298a3.tar.gz
enigma2-16c07b98245e94a162685803acd4ba4b5d4298a3.zip
Merge branch 'master' into obi/master
Conflicts: main/Makefile.am
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
-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);
}