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:
Kjartan Maraas 2005-02-05 13:45:56 +00:00 committed by Sebastien Bacher
parent 61878a725f
commit 206af76406
3 changed files with 9 additions and 1 deletions

View file

@ -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>
* theme-thumbnailer.c (main): Added the full path of the theme

View file

@ -148,6 +148,7 @@ main(int argc, char **argv)
if (!g_file_test (theme_name, G_FILE_TEST_EXISTS)) {
g_printerr("%s is not a valid theme\n", argv[1]);
g_free (theme_name);
return 1;
}

View file

@ -117,7 +117,7 @@ themus_properties_view_init (ThemusPropertiesView *self)
THEMUS_TYPE_PROPERTIES_VIEW,
ThemusPropertiesViewDetails);
gnome_theme_init (FALSE);
gnome_theme_init (NULL);
gtk_table_resize (GTK_TABLE (self), 3, 2);
gtk_table_set_homogeneous (GTK_TABLE (self), FALSE);