2005-05-31 Marco Pesenti Gritti <mpg@redhat.com>
* pdf/ev-poppler.cc:
Release the poppler document on dispose
+2005-05-31 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * pdf/ev-poppler.cc:
+
+ Release the poppler document on dispose
+
2005-05-31 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-view.c: (ev_view_set_document):
pdf_document_ps_exporter_iface_init);
});
+static void
+pdf_document_dispose (GObject *object)
+{
+ PdfDocument *pdf_document = PDF_DOCUMENT(object);
+
+ if (pdf_document->document) {
+ g_object_unref (pdf_document->document);
+ }
+}
+
static void
pdf_document_class_init (PdfDocumentClass *klass)
{
+ GObjectClass *g_object_class = G_OBJECT_CLASS (klass);
+
+ g_object_class->dispose = pdf_document_dispose;
}
static void