In some cases, when an event is scheduled against a subclass of Object, and if no one owns a reference directly to this object, the object is alive, has a refcount of zero and the method ran when the event expires runs against the raw pointer which means that we are manipulating an object with a refcount of zero. So, we must disable this check. This is really evil but I see no way to work around this.

This commit is contained in:
Mathieu Lacage
2007-07-03 17:05:23 +02:00
parent 038bc809cb
commit 96698c5783

View File

@@ -118,7 +118,6 @@ Object::~Object ()
Ptr<Object>
Object::DoQueryInterface (InterfaceId iid) const
{
NS_ASSERT (Check ());
const Object *currentObject = this;
do {
NS_ASSERT (currentObject != 0);