Commit 0d25592a authored by Kristian Høgsberg's avatar Kristian Høgsberg

2006-09-21 Kristian Høgsberg <krh@redhat.com>

	* glib/poppler-page.cc (_poppler_page_new): Make PopplerPage
	reference its document throughout the lifetime of the page (#7005).
parent b834755c
2006-09-21 Kristian Høgsberg <krh@redhat.com>
* glib/poppler-page.cc (_poppler_page_new): Make PopplerPage
reference its document throughout the lifetime of the page (#7005).
* poppler/Gfx.cc: Remove the right out->updateAll() call.
2006-09-20 Kristian Høgsberg <krh@redhat.com>
......
......@@ -53,7 +53,7 @@ _poppler_page_new (PopplerDocument *document, Page *page, int index)
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 @@ poppler_page_finalize (GObject *object)
{
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment