mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-27 01:21:39 +00:00
fix(tests): correctly deinit font faces
This commit is contained in:
@@ -425,7 +425,8 @@ test "fontconfig" {
|
||||
try testing.expect(n.len > 0);
|
||||
|
||||
// Load it and verify it works
|
||||
const face = try def.load(lib, .{ .size = .{ .points = 12 } });
|
||||
var face = try def.load(lib, .{ .size = .{ .points = 12 } });
|
||||
defer face.deinit();
|
||||
try testing.expect(face.glyphIndex(' ') != null);
|
||||
}
|
||||
|
||||
@@ -456,6 +457,7 @@ test "coretext" {
|
||||
try testing.expect(n.len > 0);
|
||||
|
||||
// Load it and verify it works
|
||||
const face = try def.load(lib, .{ .size = .{ .points = 12 } });
|
||||
var face = try def.load(lib, .{ .size = .{ .points = 12 } });
|
||||
defer face.deinit();
|
||||
try testing.expect(face.glyphIndex(' ') != null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user