[poppler] glib/poppler-document.cc glib/poppler-page.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Oct 6 01:29:02 PDT 2012
glib/poppler-document.cc | 6 ++++++
glib/poppler-page.cc | 2 ++
2 files changed, 8 insertions(+)
New commits:
commit ac3875a9e7f2f4f31881d3d1b3081f2adaef65a1
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 e626a2a..5670300 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -469,6 +469,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);
}
/**
@@ -2070,6 +2072,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);
}
/**
@@ -2571,6 +2575,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 fce173d..b362a62 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