From aeee6b217ba1f24090abd6efc78a57b62e98a3d7 Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Wed, 14 Oct 2020 15:29:44 +0000 Subject: [PATCH] Bug 1607762 - Make the refcount of nsHtml5OwningUTF16Buffer atomic. r=mccr8 Differential Revision: https://phabricator.services.mozilla.com/D92936 --- parser/html/nsHtml5OwningUTF16Buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/html/nsHtml5OwningUTF16Buffer.h b/parser/html/nsHtml5OwningUTF16Buffer.h index a1a63ae794f8..7cfdf74b9b2e 100644 --- a/parser/html/nsHtml5OwningUTF16Buffer.h +++ b/parser/html/nsHtml5OwningUTF16Buffer.h @@ -61,7 +61,7 @@ class nsHtml5OwningUTF16Buffer : public nsHtml5UTF16Buffer { nsrefcnt Release(); private: - nsAutoRefCnt mRefCnt; + mozilla::ThreadSafeAutoRefCnt mRefCnt; }; #endif // nsHtml5OwningUTF16Buffer_h