diff --git a/nautilus.spec b/nautilus.spec index 73503c3..b593c04 100644 --- a/nautilus.spec +++ b/nautilus.spec @@ -19,7 +19,7 @@ Name: nautilus Summary: Nautilus is a file manager for GNOME Version: 2.23.90 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: User Interface/Desktops Source: http://download.gnome.org/sources/%{name}/2.23/%{name}-%{version}.tar.bz2 @@ -102,6 +102,9 @@ Patch17: nautilus-filetype-symlink-fix.patch # http://bugzilla.gnome.org/show_bug.cgi?id=548740 Patch18: nautilus-2.23.90-schemas-typo.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=550009 +Patch20: small-leaks.patch + %description Nautilus integrates access to files, applications, media, Internet-based resources and the Web. Nautilus delivers a dynamic and @@ -141,6 +144,7 @@ for writing nautilus extensions. %patch15 -p1 -b .xds %patch17 -p0 -b .symlink %patch18 -p1 -b .typo +%patch20 -p0 -b .small-leaks %build @@ -259,6 +263,9 @@ fi %changelog +* Sat Aug 30 2008 Matthias Clasen - 2.23.90-4 +- Plug a few small memory leaks + * Thu Aug 28 2008 Matthias Clasen - 2.23.90-3 - Pull in split-off gvfs backends diff --git a/small-leaks.patch b/small-leaks.patch new file mode 100644 index 0000000..9b30820 --- /dev/null +++ b/small-leaks.patch @@ -0,0 +1,28 @@ +Index: libnautilus-private/nautilus-directory-background.c +=================================================================== +--- libnautilus-private/nautilus-directory-background.c (revision 14544) ++++ libnautilus-private/nautilus-directory-background.c (working copy) +@@ -115,6 +115,7 @@ + if (tmp != NULL) { + if (!gdk_color_parse (tmp, color)) + gdk_color_parse ("black", color); ++ g_free (tmp); + } + else { + gdk_color_parse ("black", color); +@@ -198,6 +199,7 @@ + else { + *placement = EEL_BACKGROUND_CENTERED; + } ++ g_free (tmp); + + /* Get the color */ + tmp = gconf_client_get_string (client, BG_PREFERENCES_COLOR_SHADING_TYPE, NULL); +@@ -223,6 +225,7 @@ + use_gradient = FALSE; + is_horizontal = FALSE; + } ++ g_free (tmp); + + read_color (client, BG_PREFERENCES_PRIMARY_COLOR, &primary); + read_color (client, BG_PREFERENCES_SECONDARY_COLOR, &secondary);