Also call IPSFactoryBuffer_Release on the 2nd arg, rather than on This->pPSFactory.
Attach a file by drag & drop or click to upload