Skip to content

Commit

Permalink
fix: properly free remote objects (#20671)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Oct 22, 2019
1 parent 97fa8c8 commit cde2aae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shell/common/api/remote/remote_object_freer.cc
Expand Up @@ -10,7 +10,7 @@
#include "electron/shell/common/api/api.mojom.h"
#include "electron/shell/common/native_mate_converters/blink_converter.h"
#include "electron/shell/common/native_mate_converters/value_converter.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "third_party/blink/public/web/web_local_frame.h"

using blink::WebLocalFrame;
Expand Down Expand Up @@ -82,8 +82,8 @@ void RemoteObjectFreer::RunDestructor() {
ref_mapper_.erase(objects_it);
}

mojom::ElectronBrowserAssociatedPtr electron_ptr;
render_frame->GetRemoteAssociatedInterfaces()->GetInterface(
mojom::ElectronBrowserPtr electron_ptr;
render_frame->GetRemoteInterfaces()->GetInterface(
mojo::MakeRequest(&electron_ptr));
electron_ptr->DereferenceRemoteJSObject(context_id_, object_id_, ref_count);
}
Expand Down

0 comments on commit cde2aae

Please sign in to comment.