From 35d7b41726201dfb51aa5c3377514e3fe0ae8b35 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 9 Nov 2014 23:44:46 -0500 Subject: [PATCH] Settled a TODO in the accessibility code. --- wintable/accessibility_darwin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wintable/accessibility_darwin.c b/wintable/accessibility_darwin.c index 6d50a96..d72524c 100644 --- a/wintable/accessibility_darwin.c +++ b/wintable/accessibility_darwin.c @@ -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; }