Commit f4d0610
committed
bug symfony#60515 [Mailer] Fix memory leak with
This PR was squashed before being merged into the 7.3 branch.
Discussion
----------
[Mailer] Fix memory leak with `mailer.message_logger_listener`
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues | Fix symfony#50580
| License | MIT
Register `mailer.message_logger_listener` only when profiler enabled to prevent memory leaks as suggested in:
- symfony#50580 (comment)
- symfony#50580 (comment)
~~`@stof` can you guide me about the way how to implement your second suggestion too? symfony#50580 (comment) UPD: resolved
_This change may be considered as a minor BC break - DI service won't be available anymore with disabled profiler._
Commits
-------
b63317d [Mailer] Fix memory leak with `mailer.message_logger_listener`mailer.message_logger_listener (andrew-demb)File tree
3 files changed
+15
-7
lines changed- src/Symfony
- Bundle/FrameworkBundle/Resources/config
- Component/Mailer/EventListener
3 files changed
+15
-7
lines changedLines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 74 | | |
80 | 75 | | |
81 | 76 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
0 commit comments