Skip to content

'node::Buffer::New(isolate, data, size)' usage will cause a memory leak #2786

Closed

Description

@hokein

As title descripted, Electron will never gc the memory created by the usage, e.g. printToPDF API. The test code is as followed:

 for (var i = 0; i < 1000; ++i) {
     mainWindow.webContents.printToPDF({}, function(error, data) {
        if (error) throw error;
     }
 }

From OS task manager, you will see the memory is increased, but it never get released.

Activity

  1. added a commit that references this issue on May 10, 2017
    6b8cf74
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