[libgweather] parser: don't leak timezone_cache
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] parser: don't leak timezone_cache
- Date: Thu, 22 Dec 2016 15:52:02 +0000 (UTC)
commit 5831e5867fe65f79ffe61aeae3df3db214c2fe5d
Author: Will Thompson <wjt endlessm com>
Date: Fri Dec 16 14:35:06 2016 +0000
parser: don't leak timezone_cache
https://bugzilla.gnome.org/show_bug.cgi?id=776170
libgweather/gweather-parser.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgweather/gweather-parser.c b/libgweather/gweather-parser.c
index 99bac07..fc2907e 100644
--- a/libgweather/gweather-parser.c
+++ b/libgweather/gweather-parser.c
@@ -205,6 +205,8 @@ _gweather_parser_free (GWeatherParser *parser)
g_hash_table_unref (parser->metar_code_cache);
if (parser->country_code_cache)
g_hash_table_unref (parser->country_code_cache);
+ if (parser->timezone_cache)
+ g_hash_table_unref (parser->timezone_cache);
g_slice_free (GWeatherParser, parser);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]