From f2e7294979b9b355a14bcd5023c6ee3115dcbcc4 Mon Sep 17 00:00:00 2001 From: MorikawaSouma Date: Fri, 13 Mar 2026 12:00:26 +0800 Subject: [PATCH] fix(fixture): correct variable name in componentWillUnmount The clearTimeout was using this.interval instead of this.timeout, causing a memory leak where timeouts were never properly cleaned up. Fixes #35814 --- fixtures/attribute-behavior/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures/attribute-behavior/src/App.js b/fixtures/attribute-behavior/src/App.js index ad6e863e1f..8234235923 100644 --- a/fixtures/attribute-behavior/src/App.js +++ b/fixtures/attribute-behavior/src/App.js @@ -602,7 +602,7 @@ class Result extends React.Component { componentWillUnmount() { if (this.timeout) { - clearTimeout(this.interval); + clearTimeout(this.timeout); } }