]> www.fi.muni.cz Git - evince.git/commitdiff
Fix memory leak.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 17 Oct 2008 10:48:35 +0000 (10:48 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 17 Oct 2008 10:48:35 +0000 (10:48 +0000)
2008-10-17  Carlos Garcia Campos  <carlosgc@gnome.org>

* shell/ev-page-cache.c: (ev_page_cache_finalize):

Fix memory leak.

svn path=/trunk/; revision=3222

ChangeLog
shell/ev-page-cache.c

index 47e9c4079fb4e218b90a1f2ce7daa41ae533bfb5..db2e702afe81b19a76d2f43cbec00817111fe75f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-17  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-page-cache.c: (ev_page_cache_finalize):
+
+       Fix memory leak.
+       
 2008-10-14  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * shell/ev-window-title.c (ev_window_title_sanitize_title):
index a43876a40fbe2b319021bdb909de566640e53d9b..a8639ef62aad36d5d82a0bc030155402ad2c9bd9 100644 (file)
@@ -134,6 +134,11 @@ ev_page_cache_finalize (GObject *object)
                page_cache->size_cache = NULL;
        }
 
+       if (page_cache->thumbs_size_cache) {
+               g_free (page_cache->thumbs_size_cache);
+               page_cache->thumbs_size_cache = NULL;
+       }
+
        if (page_cache->height_to_page) {
                g_free (page_cache->height_to_page);
                page_cache->height_to_page = NULL;