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:
parent
d1ba082bd6
commit
14b930cf5d
2 changed files with 9 additions and 1 deletions
|
@ -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>
|
2006-11-13 Thomas Wood <thos@gnome.org>
|
||||||
|
|
||||||
(gnome_theme_installer_run): Open transfer dialog with transient
|
(gnome_theme_installer_run): Open transfer dialog with transient
|
||||||
|
|
|
@ -63,7 +63,7 @@ file_theme_type(gchar *dir)
|
||||||
{
|
{
|
||||||
gchar *file_contents;
|
gchar *file_contents;
|
||||||
gchar *filename = NULL;
|
gchar *filename = NULL;
|
||||||
gint file_size;
|
gint file_size, theme_type;
|
||||||
GPatternSpec *pattern;
|
GPatternSpec *pattern;
|
||||||
char *uri;
|
char *uri;
|
||||||
GnomeVFSURI *src_uri;
|
GnomeVFSURI *src_uri;
|
||||||
|
@ -98,6 +98,7 @@ file_theme_type(gchar *dir)
|
||||||
gnome_vfs_uri_unref (src_uri);
|
gnome_vfs_uri_unref (src_uri);
|
||||||
return THEME_GTK;
|
return THEME_GTK;
|
||||||
}
|
}
|
||||||
|
gnome_vfs_uri_unref (src_uri);
|
||||||
|
|
||||||
filename = g_strdup_printf ("%s/metacity-1/metacity-theme-1.xml",dir);
|
filename = g_strdup_printf ("%s/metacity-1/metacity-theme-1.xml",dir);
|
||||||
src_uri = gnome_vfs_uri_new (filename);
|
src_uri = gnome_vfs_uri_new (filename);
|
||||||
|
@ -106,6 +107,7 @@ file_theme_type(gchar *dir)
|
||||||
gnome_vfs_uri_unref (src_uri);
|
gnome_vfs_uri_unref (src_uri);
|
||||||
return THEME_METACITY;
|
return THEME_METACITY;
|
||||||
}
|
}
|
||||||
|
gnome_vfs_uri_unref (src_uri);
|
||||||
|
|
||||||
|
|
||||||
filename = g_strdup_printf ("%s/configure.in",dir);
|
filename = g_strdup_printf ("%s/configure.in",dir);
|
||||||
|
@ -115,6 +117,7 @@ file_theme_type(gchar *dir)
|
||||||
gnome_vfs_uri_unref (src_uri);
|
gnome_vfs_uri_unref (src_uri);
|
||||||
return THEME_ENGINE;
|
return THEME_ENGINE;
|
||||||
}
|
}
|
||||||
|
gnome_vfs_uri_unref (src_uri);
|
||||||
|
|
||||||
return THEME_INVALID;
|
return THEME_INVALID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue