Fix invalid reference
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jul 2010 11:16:54 +0000 (13:16 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jul 2010 11:16:54 +0000 (13:16 +0200)
src/output/render.c

index 450d5de7ef241b8f43caaa116c2c64ad870dc382..25dd28b56fde3f46433dfa4a3218a8e9f680c21a 100644 (file)
@@ -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,