mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Merge pull request #2028 from ghostty-org/leak
core: surface needs to free link regex on config reload
This commit is contained in:
@ -221,7 +221,7 @@ const DerivedConfig = struct {
|
||||
window_padding_y: u32,
|
||||
window_padding_balance: bool,
|
||||
title: ?[:0]const u8,
|
||||
links: []const Link,
|
||||
links: []Link,
|
||||
|
||||
const Link = struct {
|
||||
regex: oni.Regex,
|
||||
@ -288,6 +288,7 @@ const DerivedConfig = struct {
|
||||
}
|
||||
|
||||
pub fn deinit(self: *DerivedConfig) void {
|
||||
for (self.links) |*link| link.regex.deinit();
|
||||
self.arena.deinit();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user