revert a cruel act of sabotage
[enigma2.git] / lib / gui / elistboxcontent.cpp
index d72b21bcd05a3a1e2ea1930245a6893f4a3c62e7..c48fec701a8f512de891fc09d62b36be7004f578 100644 (file)
@@ -260,6 +260,7 @@ eListboxPythonStringContent::eListboxPythonStringContent()
 
 eListboxPythonStringContent::~eListboxPythonStringContent()
 {
+       Py_XDECREF(m_list);
 }
 
 void eListboxPythonStringContent::cursorHome()
@@ -423,7 +424,7 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style,
                                /* handle left part. get item from tuple, convert to string, display. */
                                
                        text = PyTuple_GET_ITEM(item, 0);
-//                     text = PyObject_Str(text); /* creates a new object - old object was borrowed! */
+                       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());