Bug 1421478: Clarify comment in handlerDataCleanup.h. r?aklotz
MozReview-Commit-ID: EVzuqVMl7Ck
--- a/accessible/ipc/win/handler/HandlerDataCleanup.h
+++ b/accessible/ipc/win/handler/HandlerDataCleanup.h
@@ -11,18 +11,20 @@
#include "HandlerData.h"
namespace mozilla {
namespace a11y {
inline void
ReleaseStaticIA2DataInterfaces(StaticIA2Data& aData)
{
- // Only interfaces of the IA2 object should be released here, never other
- // objects!
+ // Only interfaces of the proxied object wrapped by this handler should be
+ // released here, never other objects!
+ // For example, if StaticIA2Data were to include accParent in future,
+ // that must not be released here.
if (aData.mIA2) {
aData.mIA2->Release();
}
if (aData.mIEnumVARIANT) {
aData.mIEnumVARIANT->Release();
}
if (aData.mIAHypertext) {
aData.mIAHypertext->Release();