]> www.fi.muni.cz Git - evince.git/commitdiff
Plug some memory leaks
authorHiroyuki Ikezoe <poincare@ikezoe.net>
Wed, 31 Aug 2005 08:34:39 +0000 (08:34 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Wed, 31 Aug 2005 08:34:39 +0000 (08:34 +0000)
2005-08-31  Hiroyuki Ikezoe  <poincare@ikezoe.net>

        * shell/ev-pixbuf-cache.c: (dispose_cache_job_info):
        * shell/ev-window.c: (ev_window_print_range), (ev_window_dispose):

        Plug some memory leaks

ChangeLog
shell/ev-pixbuf-cache.c
shell/ev-window.c

index 237cc6f5bb11f4c6fa0a2daf77e6731b14febd46..a23f1a2b542ae4a694fbe93ba2ce30653b72fce4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-31  Hiroyuki Ikezoe  <poincare@ikezoe.net>
+
+       * shell/ev-pixbuf-cache.c: (dispose_cache_job_info):
+       * shell/ev-window.c: (ev_window_print_range), (ev_window_dispose):
+
+       Plug some memory leaks
+
 2005-08-29  Christian Persch  <chpe@cvs.gnome.org>
 
        * configure.ac:
index 1b6966d39b733e2ede96ab3a39043a27b397bd16..b780724887515fc98a3be7b6e033f3c747c350d9 100644 (file)
@@ -160,6 +160,10 @@ dispose_cache_job_info (CacheJobInfo *job_info,
                gdk_region_destroy (job_info->selection_region);
                job_info->selection_region = NULL;
        }
+       if (job_info->rc) {
+               g_object_unref (G_OBJECT (job_info->rc));
+               job_info->rc = NULL;
+       }
 
        job_info->selection_points.x1 = -1;
        job_info->new_points.x1 = -1;
index 8ab8da57a284d909ac41ef0965c840bbaed96e88..be601901ab38d925f416f4bec5d92948255f58bf 100644 (file)
@@ -1486,6 +1486,8 @@ ev_window_print_range (EvWindow *ev_window, int first_page, int last_page)
                break;
        }
 
+       g_object_unref (job);
+
        gtk_widget_destroy (print_dialog);
 
        if (print_job != NULL) {
@@ -2836,6 +2838,11 @@ ev_window_dispose (GObject *object)
                priv->find_bar = NULL;
        }
 
+       if (priv->uri) {
+               g_free (priv->uri);
+               priv->uri = NULL;
+       }
+
        if (window->priv->fullscreen_timeout_source) {
                g_source_destroy (window->priv->fullscreen_timeout_source);
                window->priv->fullscreen_timeout_source = NULL;