From a3e889bc787336e8d446528ecc29ff163a2f2be2 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 4 Jul 2010 13:16:54 +0200 Subject: [PATCH] Fix invalid reference --- src/output/render.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/render.c b/src/output/render.c index 450d5de7..25dd28b5 100644 --- a/src/output/render.c +++ b/src/output/render.c @@ -1051,7 +1051,10 @@ void render_break_destroy (struct render_break *b) { if (b != NULL) - render_page_unref (b->page); + { + render_page_unref (b->page); + b->page = NULL; + } } /* Returns true if B still has cells that are yet to be returned, -- 2.30.2