Fix a bug that causes application crashes

This commit is contained in:
Matthias Clasen 2008-04-14 04:44:23 +00:00
parent 2739a72ac2
commit 01e4363df3
2 changed files with 19 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 0.2.3
Release: 2%{?dist}
Release: 3%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@ -35,6 +35,7 @@ BuildRequires: automake autoconf
BuildRequires: libtool
Patch1: gvfs-0.2.2-archive-integration.patch
Patch2: gvfs-64clean.patch
Patch3: regexxer-crash.patch
%description
The gvfs package provides backend implementations for the gio
@ -65,6 +66,7 @@ to access the gvfs filesystems.
%setup -q
%patch1 -p0 -b .archive-integration
%patch2 -p1 -b .64clean
%patch3 -p1 -b .regexxer-crash
%build
@ -178,6 +180,9 @@ update-desktop-database &> /dev/null ||:
%changelog
* Mon Apr 14 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.3-3
- Fix a bug that causes application crashes (#441084)
* Fri Apr 11 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.3-2
- Fix a crash of the fuse daemon on 64bit

13
regexxer-crash.patch Normal file
View File

@ -0,0 +1,13 @@
diff -up gvfs-0.2.3/common/gmounttracker.c.regexxer-crash gvfs-0.2.3/common/gmounttracker.c
--- gvfs-0.2.3/common/gmounttracker.c.regexxer-crash 2008-04-14 00:41:08.000000000 -0400
+++ gvfs-0.2.3/common/gmounttracker.c 2008-04-14 00:41:26.000000000 -0400
@@ -236,7 +236,8 @@ g_mount_tracker_finalize (GObject *objec
tracker = G_MOUNT_TRACKER (object);
- g_mutex_free (tracker->lock);
+ if (tracker->lock)
+ g_mutex_free (tracker->lock);
g_list_foreach (tracker->mounts,
(GFunc)g_mount_info_unref, NULL);