From fe95da256bcc4e2dd2bbdbad3af116b7dd914a35 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 10 Jan 2024 22:43:55 -0500 Subject: [PATCH] gpu: Plug a memory leak --- gsk/gpu/gskgpudevice.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gsk/gpu/gskgpudevice.c b/gsk/gpu/gskgpudevice.c index 5c2abb7ac0..d8c32d5d88 100644 --- a/gsk/gpu/gskgpudevice.c +++ b/gsk/gpu/gskgpudevice.c @@ -661,7 +661,6 @@ gsk_gpu_device_lookup_glyph_image (GskGpuDevice *self, return cache->image; } - cache = g_new (GskGpuCachedGlyph, 1); pango_font_get_glyph_extents (font, glyph, &ink_rect, NULL); origin.x = floor (ink_rect.x * scale / PANGO_SCALE); origin.y = floor (ink_rect.y * scale / PANGO_SCALE);