add missing decrefs
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 1 Jan 2006 20:12:47 +0000 (20:12 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 1 Jan 2006 20:12:47 +0000 (20:12 +0000)
lib/dvb/epgcache.cpp

index 9c6bb1b..e3a4585 100644 (file)
@@ -1276,12 +1276,14 @@ PyObject *handleEvent(ePtr<eServiceEvent> &ptr, PyObject *dest_list, char* argst
                        return result;
                }
                PyList_Append(dest_list, result);
                        return result;
                }
                PyList_Append(dest_list, result);
+               Py_DECREF(result);
        }
        else
        {
                PyObject *tuple = PyTuple_New(argcount);
                fillTuple(tuple, argstring, argcount, service, ptr, nowTime, service_name);
                PyList_Append(dest_list, tuple);
        }
        else
        {
                PyObject *tuple = PyTuple_New(argcount);
                fillTuple(tuple, argstring, argcount, service, ptr, nowTime, service_name);
                PyList_Append(dest_list, tuple);
+               Py_DECREF(tuple);
        }
        return 0;
 }
        }
        return 0;
 }