[poppler] Branch 'poppler-0.20' - glib/poppler-document.cc glib/poppler-page.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Oct 6 01:30:40 PDT 2012
glib/poppler-document.cc | 6 ++++++
glib/poppler-page.cc | 2 ++
2 files changed, 8 insertions(+)
New commits:
commit 6d6bd660dbb652f2f3e87c81c55a87d1fc11ec70
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sat Oct 6 10:26:55 2012 +0200
glib: chain up finalize to the parent class
This was missing in some of the classes.
https://bugs.freedesktop.org/show_bug.cgi?id=55521
diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index 24badd9..74d7635 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -356,6 +356,8 @@ poppler_document_finalize (GObject *object)
poppler_document_layers_free (document);
delete document->output_dev;
delete document->doc;
+
+ G_OBJECT_CLASS (poppler_document_parent_class)->finalize (object);
}
/**
@@ -1957,6 +1959,8 @@ poppler_font_info_finalize (GObject *object)
delete font_info->scanner;
g_object_unref (font_info->document);
+
+ G_OBJECT_CLASS (poppler_font_info_parent_class)->finalize (object);
}
/**
@@ -2458,6 +2462,8 @@ poppler_ps_file_finalize (GObject *object)
delete ps_file->out;
g_object_unref (ps_file->document);
g_free (ps_file->filename);
+
+ G_OBJECT_CLASS (poppler_ps_file_parent_class)->finalize (object);
}
/**
diff --git a/glib/poppler-page.cc b/glib/poppler-page.cc
index 156e2d7..2e0e44e 100644
--- a/glib/poppler-page.cc
+++ b/glib/poppler-page.cc
@@ -79,6 +79,8 @@ poppler_page_finalize (GObject *object)
if (page->text != NULL)
page->text->decRefCnt();
/* page->page is owned by the document */
+
+ G_OBJECT_CLASS (poppler_page_parent_class)->finalize (object);
}
/**
More information about the poppler
mailing list