goffice r2235 - in trunk: . goffice/utils
- From: jbrefort svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: goffice r2235 - in trunk: . goffice/utils
 
- Date: Tue, 14 Oct 2008 06:57:17 +0000 (UTC)
 
Author: jbrefort
Date: Tue Oct 14 06:57:16 2008
New Revision: 2235
URL: http://svn.gnome.org/viewvc/goffice?rev=2235&view=rev
Log:
2008-10-14  Jean Brefort  <jean brefort normalesup org>
	* goffice/utils/go-file.c: (go_get_mime_type): do not unref a
	NULL GObject*.
Modified:
   trunk/ChangeLog
   trunk/goffice/utils/go-file.c
Modified: trunk/goffice/utils/go-file.c
==============================================================================
--- trunk/goffice/utils/go-file.c	(original)
+++ trunk/goffice/utils/go-file.c	Tue Oct 14 06:57:16 2008
@@ -1094,7 +1094,8 @@
 		mime_type = g_content_type_get_mime_type (content_type);
 		g_free (content_type);
 	}
-	g_object_unref (info);
+	if (info)
+		g_object_unref (info);
 	if (mime_type)
 		return mime_type;
 	return g_strdup ("application/octet-stream");
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]