Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/djvu
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-06-14 17:27:08 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-06-14 17:30:10 (GMT)
commit8d62af1f60cf9775352342867736df3e7f488b43 (patch)
tree04191d1a803d41f92c17403153374e1c82c4202f /backend/djvu
parent253b3797ca70a04894f8742386619bf156536a0a (diff)
Don't mix PopplerRectangle and EvRectangle
We shouldn't assume a PopplerRectangle was created with g_new(), so better use poppler_rectangle_free().
Diffstat (limited to 'backend/djvu')
-rw-r--r--backend/djvu/djvu-text-page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/djvu/djvu-text-page.c b/backend/djvu/djvu-text-page.c
index 10fe1a4..3f171d1 100644
--- a/backend/djvu/djvu-text-page.c
+++ b/backend/djvu/djvu-text-page.c
@@ -233,7 +233,7 @@ djvu_text_page_sexpr_process (DjvuTextPage *page,
miniexp_t end)
{
if (page->bounding_box || p == start) {
- EvRectangle *new_rectangle = g_new (EvRectangle, 1);
+ EvRectangle *new_rectangle = ev_rectangle_new ();
new_rectangle->x1 = miniexp_to_int (miniexp_nth (1, p));
new_rectangle->y1 = miniexp_to_int (miniexp_nth (2, p));
new_rectangle->x2 = miniexp_to_int (miniexp_nth (3, p));