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:
parent
64becacf35
commit
0e14d6efaf
2 changed files with 5 additions and 0 deletions
|
@ -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>
|
2008-11-27 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
* theme-installer.c: (transfer_cancel_cb): really remove the
|
* theme-installer.c: (transfer_cancel_cb): really remove the
|
||||||
|
|
|
@ -84,6 +84,7 @@ file_theme_type (const gchar *dir)
|
||||||
gboolean match;
|
gboolean match;
|
||||||
|
|
||||||
g_file_get_contents (filename, &file_contents, &file_size, NULL);
|
g_file_get_contents (filename, &file_contents, &file_size, NULL);
|
||||||
|
g_free (filename);
|
||||||
|
|
||||||
pattern = g_pattern_spec_new ("*[Icon Theme]*");
|
pattern = g_pattern_spec_new ("*[Icon Theme]*");
|
||||||
match = g_pattern_match_string (pattern, file_contents);
|
match = g_pattern_match_string (pattern, file_contents);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue