} else {
return POPPLER_ORIENTATION_PORTRAIT;
}
+ g_object_unref (page);
#else
return POPPLER_ORIENTATION_PORTRAIT;
#endif
poppler_page = poppler_document_get_page (pdf_document->document, page);
set_page_orientation (pdf_document, poppler_page);
poppler_page_get_size (poppler_page, width, height);
+ g_object_unref (poppler_page);
}
static char *
g_object_get (G_OBJECT (poppler_page),
"label", &label,
NULL);
+ g_object_unref (poppler_page);
return label;
}
}
poppler_page_free_link_mapping (mapping_list);
+ g_object_unref (poppler_page);
return g_list_reverse (retval);
}
scale,
pixbuf,
0, 0);
-
+
+ g_object_unref (poppler_page);
+
return pixbuf;
}
PopplerPage *poppler_page;
PopplerRectangle r;
double height;
+ char *text;
poppler_page = poppler_document_get_page (pdf_document->document, page);
set_page_orientation (pdf_document, poppler_page);
r.x2 = rect->x2;
r.y2 = height - rect->y1;
- return poppler_page_get_text (poppler_page, &r);
+ text = poppler_page_get_text (poppler_page, &r);
+
+ g_object_unref (poppler_page);
+
+ return text;
}
static EvOrientation
scale, pixbuf,
x_offset, y_offset);
+ g_object_unref (poppler_page);
return pixbuf;
}
g_return_val_if_fail (poppler_page != NULL, NULL);
pixbuf = poppler_page_get_thumbnail (poppler_page);
+
if (pixbuf != NULL) {
/* The document provides its own thumbnails. */
if (border) {
/* There is no provided thumbnail. We need to make one. */
pixbuf = make_thumbnail_for_size (pdf_document, page, size, border);
}
+
+ g_object_unref (poppler_page);
+
return pixbuf;
}
*height = size;
}
}
+ g_object_unref (poppler_page);
}
static void
matches = poppler_page_find_text (page, search->text);
ev_document_doc_mutex_unlock ();
+ g_object_unref (page);
+
search->pages[search->search_page] = matches;
ev_document_find_changed (EV_DOCUMENT_FIND (pdf_document),
search->search_page);
rectangle->y1 = height - r->y2;
rectangle->x2 = r->x2;
rectangle->y2 = height - r->y1;
-
+ g_object_unref (poppler_page);
+
return TRUE;
}
poppler_page = poppler_document_get_page (pdf_document->document, page);
set_page_orientation (pdf_document, poppler_page);
poppler_page_render_to_ps (poppler_page, pdf_document->ps_file);
+ g_object_unref (poppler_page);
}
static void