Remove recorded object from registry in desturctor.

This commit is contained in:
Cheng Zhao 2013-04-21 16:27:30 +08:00
parent b0b72c36e4
commit ebf5bf2d19

View file

@ -24,6 +24,7 @@ RecordedObject::RecordedObject(v8::Handle<v8::Object> wrapper)
}
RecordedObject::~RecordedObject() {
AtomBrowserContext::Get()->objects_registry()->Remove(id());
}
// static