An open API service indexing awesome lists of open source software.

https://github.com/simonihmig/e-cp-v-memleak


https://github.com/simonihmig/e-cp-v-memleak

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# e-cp-v-memleak

Reproduction of a memory leak issue in `ember-cp-validations: https://github.com/offirgolan/ember-cp-validations/issues/485

## Not leaking

The simple `no-leak` component does not use a validation mixin. And visiting a page with this component and going
somehwere else does not cause a memory leak. Steps to reproduce:

* Run the 'no leak' acceptance test
* Create a heap snapshot in Chrome

There is no `Container` instance left:

![noleak](docs/noleak.png)

## Memory leak

The `memory-leak` component *does* use a validation mixin. And visiting a page with this component and going
somehwere else causes a memory leak. Steps to reproduce:

* Run the 'leak' acceptance test
* Create a heap snapshot in Chrome

There is a `Container` instance left:

![leak](docs/leak.png)

Also you can see the component instance (ES6 class `MemoryLeak`) not being GCed:

![leak2](docs/leak2.png)