Skip to content

add/remove iframe cause memory leak #789

Closed

Description

@realcontra

from version 0.19.0 , atom default binding to all iframes in pages. if add/remove iframe in one page lead to memory leak!

code :

void AtomRendererClient::WillReleaseScriptContext(
blink::WebFrame* frame,
v8::Handlev8::Context context,
int world_id) {

.........
.........
// Notice that we are not disposing the environment object here, because there
// may still be pending uv operations in the uv loop, and when they got done
// they would be needing the original environment.
// So we are leaking the environment object here, just like Chrome leaking the
// memory :) . Since it's only leaked when refreshing or unloading, so as long
// as we make sure renderer process is restared then the memory would not be
// leaked.
//env->Dispose();
.........
.........

}

Activity

  1. changed the title [-]add/remove iframe cause memory leak![/-] [+]add/remove iframe cause memory leak[/+] on Nov 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions