From a0f6231e6d4507d94d88ccf8cbf9d94a4c5b340a Mon Sep 17 00:00:00 2001 From: Fedor Date: Thu, 26 Nov 2020 05:42:08 +0200 Subject: [PATCH] [parser] Make the refcount of nsHtml5OwningUTF16Buffer atomic. --- 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 d7e3200ea..0d8777464 100644 --- a/parser/html/nsHtml5OwningUTF16Buffer.h +++ b/parser/html/nsHtml5OwningUTF16Buffer.h @@ -52,7 +52,7 @@ public: nsrefcnt AddRef(); nsrefcnt Release(); private: - nsAutoRefCnt mRefCnt; + mozilla::ThreadSafeAutoRefCnt mRefCnt; }; #endif // nsHtml5OwningUTF16Buffer_h