Merge pull request #4290 from dgburr/fix-swig-memory-leak-master
authorjmarshallnz <jcmarsha@gmail.com>
Fri, 14 Mar 2014 22:15:24 +0000 (11:15 +1300)
committerJonathan Marshall <jmarshall@xbmc.org>
Fri, 14 Mar 2014 22:17:36 +0000 (11:17 +1300)
Fix memory leakage in python bindings

xbmc/interfaces/python/typemaps/python.vector.outtm

index a841283..69dffe8 100644 (file)
@@ -41,6 +41,7 @@
         PyObject* pyentry${seq};
         ${helper.getOutConversion(vectype,'result',method,[ 'result' : 'pyentry' + seq, 'api' : 'entry' + seq, 'sequence' : sequence ])}
         PyList_Append(${result}, pyentry${seq});
+        Py_DECREF(pyentry${seq});
       }
 <%
     if (ispointer)