Applied patch from bug 378680 (leak in file_theme_type() in

2006-11-27  Thomas Wood  <thos@gnome.org>

	* gnome-theme-installer.c: (file_theme_type): Applied patch from
	bug 378680 (leak in file_theme_type() in theme-switcher)
This commit is contained in:
Thomas Wood 2006-11-27 09:44:06 +00:00 committed by Thomas Wood
parent d1ba082bd6
commit 14b930cf5d
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-11-27 Thomas Wood <thos@gnome.org>
* gnome-theme-installer.c: (file_theme_type): Applied patch from
bug 378680 (leak in file_theme_type() in theme-switcher)
2006-11-13 Thomas Wood <thos@gnome.org>
(gnome_theme_installer_run): Open transfer dialog with transient

View file

@ -63,7 +63,7 @@ file_theme_type(gchar *dir)
{
gchar *file_contents;
gchar *filename = NULL;
gint file_size;
gint file_size, theme_type;
GPatternSpec *pattern;
char *uri;
GnomeVFSURI *src_uri;
@ -98,6 +98,7 @@ file_theme_type(gchar *dir)
gnome_vfs_uri_unref (src_uri);
return THEME_GTK;
}
gnome_vfs_uri_unref (src_uri);
filename = g_strdup_printf ("%s/metacity-1/metacity-theme-1.xml",dir);
src_uri = gnome_vfs_uri_new (filename);
@ -106,6 +107,7 @@ file_theme_type(gchar *dir)
gnome_vfs_uri_unref (src_uri);
return THEME_METACITY;
}
gnome_vfs_uri_unref (src_uri);
filename = g_strdup_printf ("%s/configure.in",dir);
@ -115,6 +117,7 @@ file_theme_type(gchar *dir)
gnome_vfs_uri_unref (src_uri);
return THEME_ENGINE;
}
gnome_vfs_uri_unref (src_uri);
return THEME_INVALID;
}