tracker r2331 - in trunk: . src/libtracker-common



Author: carlosg
Date: Wed Oct  8 15:07:53 2008
New Revision: 2331
URL: http://svn.gnome.org/viewvc/tracker?rev=2331&view=rev

Log:
2008-10-08  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-common/tracker-file-utils.c
        (tracker_file_get_mime_type): do not unref a possibly NULL GFileInfo.


Modified:
   trunk/ChangeLog
   trunk/src/libtracker-common/tracker-file-utils.c

Modified: trunk/src/libtracker-common/tracker-file-utils.c
==============================================================================
--- trunk/src/libtracker-common/tracker-file-utils.c	(original)
+++ trunk/src/libtracker-common/tracker-file-utils.c	Wed Oct  8 15:07:53 2008
@@ -269,9 +269,9 @@
 		content_type = NULL;
 	} else {
 		content_type = g_strdup (g_file_info_get_content_type (info));
+		g_object_unref (info);
 	}
 
-	g_object_unref (info);
 	g_object_unref (file);
 
 	return content_type ? content_type : g_strdup ("unknown");



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