[poppler] poppler/glib: poppler-page.cc,1.50,1.51
Kristian Høgsberg
krh at kemper.freedesktop.org
Thu Sep 21 15:40:55 PDT 2006
Update of /cvs/poppler/poppler/glib
In directory kemper:/tmp/cvs-serv31293/glib
Modified Files:
poppler-page.cc
Log Message:
2006-09-21 Kristian Høgsberg <krh at redhat.com>
* glib/poppler-page.cc (_poppler_page_new): Make PopplerPage
reference its document throughout the lifetime of the page (#7005).
Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-page.cc,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- poppler-page.cc 19 May 2006 21:42:54 -0000 1.50
+++ poppler-page.cc 21 Sep 2006 22:40:53 -0000 1.51
@@ -53,7 +53,7 @@
g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL);
poppler_page = (PopplerPage *) g_object_new (POPPLER_TYPE_PAGE, NULL, NULL);
- poppler_page->document = document;
+ poppler_page->document = (PopplerDocument *) g_object_ref (document);
poppler_page->page = page;
poppler_page->index = index;
@@ -65,6 +65,9 @@
{
PopplerPage *page = POPPLER_PAGE (object);
+ g_object_unref (page->document);
+ page->document = NULL;
+
if (page->gfx != NULL)
delete page->gfx;
if (page->text_dev != NULL)
More information about the poppler
mailing list