more leak fixes

This commit is contained in:
Matthias Clasen 2008-09-19 16:07:22 +00:00
parent 27e104a569
commit 8285527e22
2 changed files with 18 additions and 1 deletions

View File

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

11
startup_id-leak.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up gnome-session-2.23.92/gnome-session/gsm-autostart-app.c.startup_id-leak gnome-session-2.23.92/gnome-session/gsm-autostart-app.c
--- gnome-session-2.23.92/gnome-session/gsm-autostart-app.c.startup_id-leak 2008-09-15 17:42:11.000000000 -0400
+++ gnome-session-2.23.92/gnome-session/gsm-autostart-app.c 2008-09-15 17:46:24.000000000 -0400
@@ -793,6 +793,7 @@ autostart_app_start_spawn (GsmAutostartA
g_debug ("GsmAutostartApp: starting %s: command=%s startup-id=%s", app->priv->desktop_id, command, startup_id);
g_free (command);
+ g_free (app->priv->startup_id);
local_error = NULL;
success = egg_desktop_file_launch (app->priv->desktop_file,
NULL,