Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-05-17 04:57:48 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-05-17 04:57:48 (GMT)
commit18be5e6b25095ca2e901d050becd83141face316 (patch)
treeef744d93a37fab192af96e57947dd98f74d7a92e /backend/ev-document.c
parent1a1099e24c625b8ab7816f1ec1ff85cb8e2880d4 (diff)
Free the EvDocumentInfo.
Tue May 17 00:51:21 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-info.h: * backend/ev-document.c: (ev_document_info_free): Free the EvDocumentInfo. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose), (clear_range), (add_range), (update_visible_range), (adjustment_changed_cb), (ev_sidebar_thumbnails_init), (ev_sidebar_thumbnails_set_document): * shell/ev-window.c: (ev_window_setup_document): Only render the visible thumbnails. It takes an instant to render, but it uses much less memory.
Diffstat (limited to 'backend/ev-document.c')
-rw-r--r--backend/ev-document.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/ev-document.c b/backend/ev-document.c
index 1b2f778..714becb 100644
--- a/backend/ev-document.c
+++ b/backend/ev-document.c
@@ -240,3 +240,18 @@ ev_document_render_pixbuf (EvDocument *document,
return retval;
}
+
+void
+ev_document_info_free (EvDocumentInfo *info)
+{
+ if (info == NULL)
+ return;
+
+ g_free (info->title);
+ g_free (info->format);
+ g_free (info->author);
+ g_free (info->subject);
+ g_free (info->keywords);
+
+ g_free (info);
+}