Commit f165b6c
authored
fix: Prevent GutenbergKit retain cycle (#24936)
* fix: Prevent GutenbergKit retain cycle
The memory leak likely leads to performance degradations and crashes.
* refactor: Remove redundant view controller clean up
This is effectively a no-op as it already occurs via UIKit behavior.
* fix: Editor loading allows deinit with weak self references
Allow clean up while the editor closes.1 parent aa9c58b commit f165b6c
File tree
1 file changed
+7
-3
lines changed- WordPress/Classes/ViewRelated/NewGutenberg
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
| 253 | + | |
| 254 | + | |
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
| |||
0 commit comments