plug another leak

This commit is contained in:
Matthias Clasen 2008-09-18 14:36:39 +00:00
parent 2462d86b28
commit 27e104a569
2 changed files with 22 additions and 1 deletions

View File

@ -12,7 +12,7 @@
Summary: GNOME session manager
Name: gnome-session
Version: 2.23.92
Release: 4%{?dist}
Release: 5%{?dist}
URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/gnome-session/2.23/%{name}-%{version}.tar.bz2
Source1: redhat-default-session
@ -73,6 +73,8 @@ Patch2: inhibitor-leak.patch
Patch3: empty-string-leak.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=552255
Patch4: ice-leak.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=552780
Patch5: xml-leak.patch
%description
@ -86,6 +88,7 @@ GNOME components and handles logout and saving the session.
%patch2 -p1 -b .inhibitor-leak
%patch3 -p1 -b .empty-string-leak
%patch4 -p0 -b .ice-leak
%patch5 -p1 -b .xml-leak
%build
@ -184,6 +187,9 @@ fi
%changelog
* Thu Sep 18 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.92-5
- Plug memory leaks
* Mon Sep 15 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.92-4
- Plug memory leaks

15
xml-leak.patch Normal file
View File

@ -0,0 +1,15 @@
diff -up gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c.xml-leak gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c
--- gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c.xml-leak 2008-09-18 01:39:26.000000000 -0400
+++ gnome-session-2.23.92/gnome-session/gsm-inhibit-dialog.c 2008-09-18 01:38:56.000000000 -0400
@@ -1001,6 +1001,11 @@ gsm_inhibit_dialog_dispose (GObject *obj
dialog->priv->inhibitors = NULL;
}
+ if (dialog->priv->xml != NULL) {
+ g_object_unref (dialog->priv->xml);
+ dialog->priv->xml = NULL;
+ }
+
G_OBJECT_CLASS (gsm_inhibit_dialog_parent_class)->dispose (object);
}