From eb2ae83b7c7adc6ddd9e71be54a72d9d702e189d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 20 Feb 2016 21:20:03 -0800 Subject: [PATCH] cairo: Fix memory leak of pango_layout_iter. Found by valgrind. Reported by John Darrington. Bug #47074. --- src/output/cairo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/output/cairo.c b/src/output/cairo.c index 4452b46a8c..1a8c78c69f 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1084,6 +1084,7 @@ xr_layout_cell_text (struct xr_driver *xr, break; } while (pango_layout_iter_next_line (iter)); + pango_layout_iter_free (iter); /* If enabled, draws a green line across the chosen breakpoint, which can be useful for debugging issues with breaking. */ -- 2.30.2