Skip to content

Memory leak in proxy generation #12

@samolesen

Description

@samolesen

The interceptor registration creates new ProxyGenerator every time, which means that existing proxies aren't reused. This causes a memory leak. The following line should be changed to be a static instance or registered as a singleton:

var proxyFactory = new ProxyGenerator();

This has also been an issue in other projects:
Glimpse/Glimpse#126
jacqueskang/IpcServiceFramework#16
corentinaltepe/PerformanceLogger#1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions