Bug 850571 - Abort if the view is still owned by a frame in Destroy(). r=roc

This commit is contained in:
Mats Palmgren 2013-05-20 17:29:17 +00:00
parent fa54d8c866
commit 3b8a88cbe1

View File

@ -132,6 +132,14 @@ nsView* nsView::GetViewFor(nsIWidget* aWidget)
void nsView::Destroy()
{
#if 1 // XXXmats temporary investigation of bug 850571
if (mFrame) {
if (uintptr_t(mFrame) == mozPoisonValue()) {
NS_RUNTIMEABORT("bug 850571: poisoned frame");
}
NS_RUNTIMEABORT("bug 850571: have frame");
}
#endif
this->~nsView();
mozWritePoison(this, sizeof(*this));
nsView::operator delete(this);