diff options
author | Thomas Thurman <thomas@thurman.org.uk> | 2007-04-05 18:45:03 +0000 |
---|---|---|
committer | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2007-04-05 18:45:03 +0000 |
commit | 8fe344db5169af4a9e4dda2661046162350b7b1d (patch) | |
tree | 62d07c15f65741346c19d73e28b5acfff53678d1 /src | |
parent | f32712937b96f4b7540dea348b42ac24644cc845 (diff) | |
download | metacity-8fe344db5169af4a9e4dda2661046162350b7b1d.tar.gz |
if theme is invalid and therefore got freed, don't attempt to read from
2007-04-05 Thomas Thurman <thomas@thurman.org.uk>
* src/theme_parser.c: if theme is invalid and therefore got
freed, don't attempt to read from it. Closes #423855.
svn path=/trunk/; revision=3172
Diffstat (limited to 'src')
-rw-r--r-- | src/theme-parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theme-parser.c b/src/theme-parser.c index 68db8e79..ae11b838 100644 --- a/src/theme-parser.c +++ b/src/theme-parser.c @@ -4610,7 +4610,8 @@ meta_theme_load (const char *theme_name, g_markup_parse_context_free (context); g_free (text); - info.theme->format_version = info.format_version; + if (info.theme) + info.theme->format_version = info.format_version; if (error) { |