don't leak the theme engine path
2008-08-16 Jens Granseuer <jensgr@gmx.net> * gnome-theme-info.c: (gtk_theme_info_missing_engine): don't leak the theme engine path svn path=/trunk/; revision=8868
This commit is contained in:
parent
eef20ec03e
commit
87c639d9bf
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-08-16 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* gnome-theme-info.c: (gtk_theme_info_missing_engine): don't leak
|
||||||
|
the theme engine path
|
||||||
|
|
||||||
2008-08-16 Jens Granseuer <jensgr@gmx.net>
|
2008-08-16 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
Keep track of hidden themes, too, so that e.g. we don't erroneously
|
Keep track of hidden themes, too, so that e.g. we don't erroneously
|
||||||
|
|
|
@ -1444,9 +1444,10 @@ gtk_theme_info_missing_engine (const gchar *gtk_theme, gboolean nameOnly)
|
||||||
found = g_file_test (full, G_FILE_TEST_EXISTS);
|
found = g_file_test (full, G_FILE_TEST_EXISTS);
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
if (nameOnly)
|
if (nameOnly) {
|
||||||
engine = g_strdup (l->data);
|
engine = g_strdup (l->data);
|
||||||
else
|
g_free (full);
|
||||||
|
} else
|
||||||
engine = full;
|
engine = full;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue