diff --git a/gnome-session.spec b/gnome-session.spec index bd869cd..a87d80a 100644 --- a/gnome-session.spec +++ b/gnome-session.spec @@ -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 - 2.23.92-5 +- Plug memory leaks + * Mon Sep 15 2008 Matthias Clasen - 2.23.92-4 - Plug memory leaks diff --git a/xml-leak.patch b/xml-leak.patch new file mode 100644 index 0000000..bd19403 --- /dev/null +++ b/xml-leak.patch @@ -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); + } +