DescriptionReset scoped_ptr to make plugin crash before entering engine_->HandleDocumentLoad, if called for deleted "Instance".
Suspecting method call for deleted instance.
Example to explain why reset() makes difference:
scoped_ptr<int>* pt = NULL;
{
scoped_ptr<int> t(new int);
pt = &t;
}
DCHECK(!(*pt)); // Fail
{
scoped_ptr<int> t(new int);
pt = &t;
t.reset();
}
DCHECK(!(*pt)); // OK
BUG=372095, 372548
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273547
Patch Set 1 #
Messages
Total messages: 12 (0 generated)
|