diff --git a/content/shared/public/nsStyleContext.h b/content/shared/public/nsStyleContext.h index baaddfe6bb9..061237bacb9 100644 --- a/content/shared/public/nsStyleContext.h +++ b/content/shared/public/nsStyleContext.h @@ -66,7 +66,6 @@ public: --mRefCnt; NS_LOG_RELEASE(this, mRefCnt, "nsStyleContext"); if (mRefCnt == 0) { - mRefCnt = 1; Destroy(); return 0; } diff --git a/layout/style/nsStyleContext.h b/layout/style/nsStyleContext.h index baaddfe6bb9..061237bacb9 100644 --- a/layout/style/nsStyleContext.h +++ b/layout/style/nsStyleContext.h @@ -66,7 +66,6 @@ public: --mRefCnt; NS_LOG_RELEASE(this, mRefCnt, "nsStyleContext"); if (mRefCnt == 0) { - mRefCnt = 1; Destroy(); return 0; }