From 206af76406723c87b3db2143fa63976849260f9b Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Sat, 5 Feb 2005 13:45:56 +0000 Subject: [PATCH] Don't leak the theme name if the theme is invalid. NULL vs. 0 in 2005-01-27 Kjartan Maraas * 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() --- vfs-methods/themus/ChangeLog | 7 +++++++ vfs-methods/themus/theme-thumbnailer.c | 1 + vfs-methods/themus/themus-properties-view.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/vfs-methods/themus/ChangeLog b/vfs-methods/themus/ChangeLog index bf80ae552..ac73a0860 100644 --- a/vfs-methods/themus/ChangeLog +++ b/vfs-methods/themus/ChangeLog @@ -1,3 +1,10 @@ +2005-01-27 Kjartan Maraas + + * 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 * theme-thumbnailer.c (main): Added the full path of the theme diff --git a/vfs-methods/themus/theme-thumbnailer.c b/vfs-methods/themus/theme-thumbnailer.c index 93e45a628..f1e19c470 100644 --- a/vfs-methods/themus/theme-thumbnailer.c +++ b/vfs-methods/themus/theme-thumbnailer.c @@ -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; } diff --git a/vfs-methods/themus/themus-properties-view.c b/vfs-methods/themus/themus-properties-view.c index 64aa5a62f..e3833f678 100644 --- a/vfs-methods/themus/themus-properties-view.c +++ b/vfs-methods/themus/themus-properties-view.c @@ -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);