Commit 2d0c4c8
committed
Fix infinite loop and memory leak in DockTilePlugin
The ghosttyAppPath property searched for hardcoded "Ghostty.app" in the
bundle path, but the app is named "Ghostree.app". The loop walked past
root where URL.deletingLastPathComponent() appends "/.." indefinitely,
causing unbounded memory growth in the Dock Extra process even when the
app is not running.
Match by .app path extension instead of hardcoded name.1 parent 880fd6e commit 2d0c4c8
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments