Author: nick Date: 2008-11-27 21:28:06 +0000 (Thu, 27 Nov 2008) New Revision: 28935
Modified: thunar/trunk/ChangeLog thunar/trunk/thunar-vfs/thunar-vfs-mime-info.c Log: * thunar-vfs/thunar-vfs-mime-info.c: Fix crash when unreffing the mime info. This happens here sometimes when unknown files were found in /proc. Modified: thunar/trunk/ChangeLog =================================================================== --- thunar/trunk/ChangeLog 2008-11-27 21:10:52 UTC (rev 28934) +++ thunar/trunk/ChangeLog 2008-11-27 21:28:06 UTC (rev 28935) @@ -1,5 +1,11 @@ 2008-11-27 Nick Schermer <[EMAIL PROTECTED]> + * thunar-vfs/thunar-vfs-mime-info.c: Fix crash when unreffing the + mime info. This happens here sometimes when unknown files were + found in /proc. + +2008-11-27 Nick Schermer <[EMAIL PROTECTED]> + * thunar-vfs/thunar-vfs-monitor.c: Implement a simpler version of the /proc and /dev ignore test. * thunar-vfs/thunar-vfs-monitor.c: Use a GSList for the handles Modified: thunar/trunk/thunar-vfs/thunar-vfs-mime-info.c =================================================================== --- thunar/trunk/thunar-vfs/thunar-vfs-mime-info.c 2008-11-27 21:10:52 UTC (rev 28934) +++ thunar/trunk/thunar-vfs/thunar-vfs-mime-info.c 2008-11-27 21:28:06 UTC (rev 28935) @@ -164,6 +164,9 @@ void thunar_vfs_mime_info_unref (ThunarVfsMimeInfo *info) { + if (G_UNLIKELY (info == NULL)) + return; + if (exo_atomic_dec (&info->ref_count)) { /* free the comment */ _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits