From 0c6531bc3006f1e21dda9d18094d589363feed37 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 29 Jun 2019 15:05:26 +0200 Subject: [PATCH] PsppireOutputView.c: Fix memory leak. --- src/ui/gui/psppire-output-view.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/gui/psppire-output-view.c b/src/ui/gui/psppire-output-view.c index f98b725834..4f2c4d2138 100644 --- a/src/ui/gui/psppire-output-view.c +++ b/src/ui/gui/psppire-output-view.c @@ -177,6 +177,7 @@ create_xr (struct psppire_output_view *view) struct xr_rendering *r = xr_rendering_create (view->xr, text_item_super (text_item), cr); xr_rendering_measure (r, NULL, &view->font_height); + xr_rendering_destroy (r); text_item_unref (text_item); gdk_window_end_draw_frame (win, ctx); -- 2.30.2