Don't leak the theme name if the theme is invalid. NULL vs. 0 in
2005-01-27 Kjartan Maraas <kmaraas@gnome.org> * theme-thumbnailer.c: (main): Don't leak the theme name if the theme is invalid. * themus-properties-view.c: (themus_properties_view_init): NULL vs. 0 in gnome_theme_init()
This commit is contained in:
parent
61878a725f
commit
206af76406
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-01-27 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
|
* theme-thumbnailer.c: (main): Don't leak the theme name
|
||||||
|
if the theme is invalid.
|
||||||
|
* themus-properties-view.c: (themus_properties_view_init):
|
||||||
|
NULL vs. 0 in gnome_theme_init()
|
||||||
|
|
||||||
2005-01-04 Shakti Sen <shprasad@novell.com>
|
2005-01-04 Shakti Sen <shprasad@novell.com>
|
||||||
|
|
||||||
* theme-thumbnailer.c (main): Added the full path of the theme
|
* theme-thumbnailer.c (main): Added the full path of the theme
|
||||||
|
|
|
@ -148,6 +148,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
if (!g_file_test (theme_name, G_FILE_TEST_EXISTS)) {
|
if (!g_file_test (theme_name, G_FILE_TEST_EXISTS)) {
|
||||||
g_printerr("%s is not a valid theme\n", argv[1]);
|
g_printerr("%s is not a valid theme\n", argv[1]);
|
||||||
|
g_free (theme_name);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ themus_properties_view_init (ThemusPropertiesView *self)
|
||||||
THEMUS_TYPE_PROPERTIES_VIEW,
|
THEMUS_TYPE_PROPERTIES_VIEW,
|
||||||
ThemusPropertiesViewDetails);
|
ThemusPropertiesViewDetails);
|
||||||
|
|
||||||
gnome_theme_init (FALSE);
|
gnome_theme_init (NULL);
|
||||||
|
|
||||||
gtk_table_resize (GTK_TABLE (self), 3, 2);
|
gtk_table_resize (GTK_TABLE (self), 3, 2);
|
||||||
gtk_table_set_homogeneous (GTK_TABLE (self), FALSE);
|
gtk_table_set_homogeneous (GTK_TABLE (self), FALSE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue