Thanks - checked in a slightly modified version (used 'k' for PyArg_ParseTuple flags as they are unsigned, and removed a little trailing whitespace) as changeset 4392:9559d74774bc
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Updated patch resolves a memory leak due to a missing Release()
I think both pStgPriority and plb must be released. Also, you should make sure the error path (when pStgPriority fails) should release plb.
Updated with missing Release() in error condition.
Thanks - checked in a slightly modified version (used 'k' for PyArg_ParseTuple flags as they are unsigned, and removed a little trailing whitespace) as changeset 4392:9559d74774bc
Thanks!