Bug in Nautilus



I think I found a bug in Nautilus 2.3.6 that causes a crash when logging
out in certain situations.  Basically, Nautilus free's a pointer, then
explicitly free's some of the pointer's struct members.  I think it
should be the other way around.  If this patch looks reasonable, I'll go
ahead and file a bug.  Thanks.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	marcus FreeBSD org
gnome FreeBSD org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

--- libnautilus-private/nautilus-desktop-directory.c.orig	Mon Aug  4 01:14:37 2003
+++ libnautilus-private/nautilus-desktop-directory.c	Mon Aug  4 01:14:54 2003
@@ -409,10 +409,10 @@
 	desktop = NAUTILUS_DESKTOP_DIRECTORY (object);
 
 	nautilus_directory_unref (desktop->details->real_directory);
-	g_free (desktop->details);
 
 	g_hash_table_destroy (desktop->details->callbacks);
 	g_hash_table_destroy (desktop->details->monitors);
+	g_free (desktop->details);
 	
 	G_OBJECT_CLASS (parent_class)->finalize (object);
 }

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]