fix memory leaks
2007-05-09 Jens Granseuer <jensgr@gmx.net> * gnome-theme-info.c: (gnome_theme_read_meta_theme): * gtkrc-utils.c: (gtkrc_find_named), (gtkrc_get_color_scheme): fix memory leaks * gnome-theme-test.c: (main): init g_thread svn path=/trunk/; revision=7589
This commit is contained in:
parent
d3cad0bcbe
commit
60bf46d133
4 changed files with 23 additions and 9 deletions
|
@ -21,8 +21,7 @@ gtkrc_find_named (const gchar *name)
|
|||
*/
|
||||
gchar *path = NULL;
|
||||
const gchar *home_dir;
|
||||
gchar *subpath;
|
||||
subpath = g_strdup ("gtk-2.0" G_DIR_SEPARATOR_S "gtkrc");
|
||||
const gchar *subpath = "gtk-2.0" G_DIR_SEPARATOR_S "gtkrc";
|
||||
|
||||
/* First look in the users home directory
|
||||
*/
|
||||
|
@ -190,6 +189,7 @@ gtkrc_get_color_scheme (gchar *filename)
|
|||
}
|
||||
}
|
||||
}
|
||||
g_scanner_destroy (scanner);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue