Chromium Code Reviews| Index: core/fxcrt/cfx_retain_ptr.h |
| diff --git a/core/fxcrt/cfx_retain_ptr.h b/core/fxcrt/cfx_retain_ptr.h |
| index f70faf14645e74fc37d7d07357c8aec67a668ed7..62b26942baf61640e2afab370f38ab122c1c9d4d 100644 |
| --- a/core/fxcrt/cfx_retain_ptr.h |
| +++ b/core/fxcrt/cfx_retain_ptr.h |
| @@ -83,6 +83,7 @@ class CFX_Retainable { |
| void Retain() { ++m_nRefCount; } |
| void Release() { |
| + ASSERT(m_nRefCount > 0); |
| if (--m_nRefCount == 0) |
| delete this; |
| } |