From ebf5bf2d19cb9c59615082b8f6fc75fdb1b2dc79 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 21 Apr 2013 16:27:30 +0800 Subject: [PATCH] Remove recorded object from registry in desturctor. --- browser/api/atom_api_recorded_object.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/api/atom_api_recorded_object.cc b/browser/api/atom_api_recorded_object.cc index f530baf..142bb50 100644 --- a/browser/api/atom_api_recorded_object.cc +++ b/browser/api/atom_api_recorded_object.cc @@ -24,6 +24,7 @@ RecordedObject::RecordedObject(v8::Handle wrapper) } RecordedObject::~RecordedObject() { + AtomBrowserContext::Get()->objects_registry()->Remove(id()); } // static -- 2.7.4