don't leak the filename

2008-11-29  Jens Granseuer  <jensgr@gmx.net>

	* theme-installer.c: (file_theme_type): don't leak the filename

svn path=/trunk/; revision=9155
This commit is contained in:
Jens Granseuer 2008-11-29 09:53:18 +00:00 committed by Jens Granseuer
parent 64becacf35
commit 0e14d6efaf
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2008-11-29 Jens Granseuer <jensgr@gmx.net>
* theme-installer.c: (file_theme_type): don't leak the filename
2008-11-27 Jens Granseuer <jensgr@gmx.net>
* theme-installer.c: (transfer_cancel_cb): really remove the

View file

@ -84,6 +84,7 @@ file_theme_type (const gchar *dir)
gboolean match;
g_file_get_contents (filename, &file_contents, &file_size, NULL);
g_free (filename);
pattern = g_pattern_spec_new ("*[Icon Theme]*");
match = g_pattern_match_string (pattern, file_contents);