mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
font: Collection deinit
This commit is contained in:
@ -42,7 +42,7 @@ pub fn deinit(self: *Collection, alloc: Allocator) void {
|
|||||||
entry.value.deinit(alloc);
|
entry.value.deinit(alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
//self.load_options.deinit(alloc);
|
if (self.load_options) |*v| v.deinit(alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const AddError = Allocator.Error || error{
|
pub const AddError = Allocator.Error || error{
|
||||||
@ -164,6 +164,10 @@ pub const LoadOptions = struct {
|
|||||||
/// must use the same allocator as the collection.
|
/// must use the same allocator as the collection.
|
||||||
metric_modifiers: Metrics.ModifierSet = .{},
|
metric_modifiers: Metrics.ModifierSet = .{},
|
||||||
|
|
||||||
|
pub fn deinit(self: *LoadOptions, alloc: Allocator) void {
|
||||||
|
self.metric_modifiers.deinit(alloc);
|
||||||
|
}
|
||||||
|
|
||||||
/// The options to use for loading faces.
|
/// The options to use for loading faces.
|
||||||
fn faceOptions(self: *const LoadOptions) font.face.Options {
|
fn faceOptions(self: *const LoadOptions) font.face.Options {
|
||||||
return .{
|
return .{
|
||||||
|
Reference in New Issue
Block a user