[patch] a few memory leaks
- From: Hiroyuki Ikezoe <poincare ikezoe net>
- To: evince-list gnome org
- Subject: [patch] a few memory leaks
- Date: Tue, 30 Aug 2005 10:52:25 +0900
I found a few memory leaks.
I attach the patch.
Thanks.
Index: shell/ev-pixbuf-cache.c
===================================================================
RCS file: /cvs/gnome/evince/shell/ev-pixbuf-cache.c,v
retrieving revision 1.18
diff -u -r1.18 ev-pixbuf-cache.c
--- shell/ev-pixbuf-cache.c 6 Aug 2005 18:14:24 -0000 1.18
+++ shell/ev-pixbuf-cache.c 30 Aug 2005 01:49:08 -0000
@@ -160,6 +160,10 @@
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: shell/ev-window.c
===================================================================
RCS file: /cvs/gnome/evince/shell/ev-window.c,v
retrieving revision 1.211
diff -u -r1.211 ev-window.c
--- shell/ev-window.c 26 Aug 2005 02:34:30 -0000 1.211
+++ shell/ev-window.c 30 Aug 2005 01:49:08 -0000
@@ -2836,6 +2836,11 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]