Commit cec3fbb
fix: Free home-screen plugin tagline before reallocating
get_appname_and_tagline() allocates g_tag_line on every home-screen
transition where the caller is a plugin, but nothing freed the prior
buffer first ? the comment at the allocation point even acknowledged
"will never be deallocated". Each return to the home screen during a
plugin-driven session (post-tx, post-cancel, multi-flow plugins)
therefore leaked roughly the plugin name length plus the tagline
template into the shared app-memory pool, slowly starving the rest
of the session.
Release the previous allocation with APP_MEM_FREE_AND_NULL() before
the next APP_MEM_CALLOC() so the pool only ever holds one live
tagline buffer.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a94a731 commit cec3fbb
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| |||
0 commit comments