aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-12-05 03:38:40 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-12-05 03:38:40 +0000
commit91d875c1fe21ae2333475c74d46215b2ad3063cd (patch)
tree6686cccc55e07e878563cee5eb28417d278ba75d /lib/gui/elistboxcontent.cpp
parent140a68de78d89faa79e64f29179a254ab8bd2607 (diff)
downloadenigma2-91d875c1fe21ae2333475c74d46215b2ad3063cd.tar.gz
enigma2-91d875c1fe21ae2333475c74d46215b2ad3063cd.zip
fix: reference was borrows, don't decref it
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
-rw-r--r--lib/gui/elistboxcontent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index 1391a2b5..362a3f84 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -422,7 +422,7 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
/* handle left part. get item from tuple, convert to string, display. */
text = PyTuple_GetItem(item, 0);
- text = PyObject_Str(text);
+ text = PyObject_Str(text); /* creates a new object - old object was borrowed! */
const char *string = (text && PyString_Check(text)) ? PyString_AsString(text) : "<not-a-string>";
eSize item_left = eSize(m_seperation, m_itemsize.height());
eSize item_right = eSize(m_itemsize.width() - m_seperation, m_itemsize.height());
@@ -525,7 +525,7 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
/* plist is 0 or borrowed */
}
}
- Py_XDECREF(type);
+ /* type is borrowed */
} else
eWarning("eListboxPythonConfigContent: second value of tuple is not a tuple.");
/* value is borrowed */