From: John Darrington Date: Sat, 29 Jun 2019 13:05:26 +0000 (+0200) Subject: PsppireOutputView.c: Fix memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c6531bc3006f1e21dda9d18094d589363feed37;p=pspp PsppireOutputView.c: Fix memory leak. --- 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);