angular/packages/core/test/render3
Kristiyan Kostadinov be161bef79 fix(core): memory leak in event listeners inside embedded views (#43075)
When we have an event listener inside an embedded view, we generate a `restoreView` call which saves the view inside of the LFrame. The problem is that we don't clear it until it gets overwritten which can lead to memory leaks.

These changes rework the generated code in order to generate a `resetView` call which will clear the view from the LFrame.

Fixes #42848.

PR Close #43075
2022-03-24 11:05:24 -07:00
..
i18n perf(core): avoid storing LView in __ngContext__ (#45051) 2022-02-18 13:32:11 -08:00
instructions feat(core): allow for injector to be specified when creating an embedded view (#45156) 2022-03-02 16:38:00 +00:00
interfaces ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
ivy fix(compiler-cli): full side-effectful registration of NgModules with ids (#45024) 2022-03-22 11:11:53 -07:00
jit refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
perf feat(core): allow for injector to be specified when creating an embedded view (#45156) 2022-03-02 16:38:00 +00:00
styling_next refactor(core): Ensure that previousOrParentTNode always belongs to current TView. (#38707) 2020-09-28 16:15:58 -04:00
util test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
change_detection_spec.ts refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
common_with_def.ts refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
component_ref_spec.ts refactor(core): clean up circular dependencies (#39722) 2020-11-18 09:15:29 -08:00
component_spec.ts refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
di_spec.ts feat(core): allow for injector to be specified when creating an embedded view (#45156) 2022-03-02 16:38:00 +00:00
es2015-tsconfig.json fix(core): destroy hooks not set up for useClass provider using forwardRef (#44281) 2021-11-30 11:56:05 -05:00
global_utils_spec.ts feat(core): introduce getDirectiveMetadata global debugging utility (#41525) 2021-04-13 16:06:32 -07:00
i18n_debug_spec.ts build: bundle spec files for saucelabs legacy job (#44281) 2021-11-30 11:56:04 -05:00
imported_renderer2.ts refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
instructions_spec.ts refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
integration_spec.ts perf(core): avoid storing LView in __ngContext__ (#45051) 2022-02-18 13:32:11 -08:00
is_shape_of.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
is_shape_of_spec.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
jit_environment_spec.ts refactor(compiler-cli): introduce declaration function to declare class metadata (#41200) 2021-04-12 10:41:17 -07:00
listeners_spec.ts fix(core): memory leak in event listeners inside embedded views (#43075) 2022-03-24 11:05:24 -07:00
load_domino.ts refactor(core): remove unused fakeAsyncFallback and asyncFallback (#37879) 2020-11-20 08:34:59 -08:00
matchers.ts test(core): update matcher.jasmineToString() to work with jasmine@3.6.0 (#43411) 2021-10-01 12:27:25 -04:00
matchers_spec.ts test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
metadata_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
node_selector_matcher_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
perfCounter_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
pipe_spec.ts perf(core): remove support for the deprecated WrappedValue (#43507) 2021-10-01 12:25:19 -04:00
providers_helper.ts fix(core): destroy hooks not set up for useClass provider using forwardRef (#44281) 2021-11-30 11:56:05 -05:00
providers_spec.ts fix(core): destroy hooks not set up for useClass provider using forwardRef (#44281) 2021-11-30 11:56:05 -05:00
query_spec.ts fix(core): QueryList should not fire changes if the underlying list did not change. (#40091) 2021-01-14 13:55:02 -08:00
render_util.ts feat(core): allow for injector to be specified when creating an embedded view (#45156) 2022-03-02 16:38:00 +00:00
renderer_factory_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
testing_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils.ts refactor(core): Rename debugMatch to matchDebug for consistency (#39233) 2020-10-21 18:33:00 -07:00
view_container_ref_spec.ts fix(core): QueryList should not fire changes if the underlying list did not change. (#40091) 2021-01-14 13:55:02 -08:00
view_fixture.ts feat(core): allow for injector to be specified when creating an embedded view (#45156) 2022-03-02 16:38:00 +00:00
view_utils_spec.ts fix(core): Store ICU state in LView rather than in TView (#39233) 2020-10-21 18:33:00 -07:00