gnome-desktop r5009 - trunk/libgnome-desktop



Author: vuntz
Date: Wed Feb 13 08:17:34 2008
New Revision: 5009
URL: http://svn.gnome.org/viewvc/gnome-desktop?rev=5009&view=rev

Log:
2008-02-13  Vincent Untz  <vuntz gnome org>

	* gnome-bg.c: (get_mtime): don't unref NULL
	Fix crash #516103.
	Patch by Joe Marcus Clarke <marcus freebsd org>


Modified:
   trunk/libgnome-desktop/ChangeLog
   trunk/libgnome-desktop/gnome-bg.c

Modified: trunk/libgnome-desktop/gnome-bg.c
==============================================================================
--- trunk/libgnome-desktop/gnome-bg.c	(original)
+++ trunk/libgnome-desktop/gnome-bg.c	Wed Feb 13 08:17:34 2008
@@ -1076,10 +1076,11 @@
 		file = g_file_new_for_uri (uri);
 		info = g_file_query_info (file, G_FILE_ATTRIBUTE_TIME_MODIFIED,
 					  G_FILE_QUERY_INFO_NONE, NULL, NULL);
-		if (info)
+		if (info) {
 			mtime = g_file_info_get_attribute_uint64 (info,
 								  G_FILE_ATTRIBUTE_TIME_MODIFIED);
-		g_object_unref (info);
+			g_object_unref (info);
+		}
 		g_object_unref (file);
 	}
 	



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