Settled a TODO in the accessibility code.

This commit is contained in:
Pietro Gagliardi 2014-11-09 23:44:46 -05:00
parent b8fdfa49fd
commit 35d7b41726
1 changed files with 1 additions and 2 deletions

View File

@ -71,10 +71,9 @@ ULONG STDMETHODCALLTYPE taRelease(IUnknown *this)
ULONG rc;
rc = (ULONG) InterlockedDecrement((volatile LONG *) (&(((tableAccessible *) this)->refcount)));
// TODO pull the refcount back out?
// don't pull the refcount back out (see http://blogs.msdn.com/b/oldnewthing/archive/2013/04/25/10413997.aspx)
if (rc == 0)
free((tableAccessible *) this);
// TODO pull the refcount back out?
return rc;
}