]> git.cworth.org Git - apitrace/blobdiff - trace.py
Fix major regression in D3D tracing.
[apitrace] / trace.py
index bd977724484de670baffa9f5b2305531f4edc0f4..3f385fa8685d63fbbcd7f180e6084fa35ff804a6 100644 (file)
--- a/trace.py
+++ b/trace.py
@@ -542,8 +542,6 @@ class Tracer:
     def wrapIid(self, riid, out):
             print '    if (%s && *%s) {' % (out.name, out.name)
             print '        if (*%s == m_pInstance) {' % (out.name,)
-            print '            AddRef();'
-            print '            m_pInstance->Release();'
             print '            *%s = this;' % (out.name,)
             print '        }'
             for iface in self.api.getAllInterfaces():