This will leak. I think you want gnome_vfs_file_info_clear (&info) there instead.--- evolution-1.0.5/composer/e-msg-composer.c.orig 2002-06-03 16:05:37.000000000 +0200 +++ evolution-1.0.5/composer/e-msg-composer.c 2002-06-03 16:06:10.000000000 +0200 @@ -3898,7 +3898,6 @@ gchar *type; type = g_strdup (gnome_vfs_file_info_get_mime_type (&info)); - gnome_vfs_file_info_unref (&info); return type; } else return NULL;
-- Ettore
