[epiphany] uri-tester: Create optslist HashTable with a free function fo the keys
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] uri-tester: Create optslist HashTable with a free function fo the keys
- Date: Tue, 8 Sep 2015 17:40:03 +0000 (UTC)
commit f324749c8c1cfce9e450a977856f1b703916fb42
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon Aug 31 09:12:22 2015 +0200
uri-tester: Create optslist HashTable with a free function fo the keys
Keys are inserted with g_strdup, so they need to be freed.
https://bugzilla.gnome.org/show_bug.cgi?id=696484
embed/web-extension/uri-tester.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/web-extension/uri-tester.c b/embed/web-extension/uri-tester.c
index 7c3944c..9e515b1 100644
--- a/embed/web-extension/uri-tester.c
+++ b/embed/web-extension/uri-tester.c
@@ -787,7 +787,7 @@ uri_tester_init (UriTester *tester)
(GDestroyNotify)g_free,
(GDestroyNotify)g_regex_unref);
priv->optslist = g_hash_table_new_full (g_str_hash, g_str_equal,
- NULL,
+ (GDestroyNotify)g_free,
(GDestroyNotify)g_free);
priv->urlcache = g_hash_table_new_full (g_str_hash, g_str_equal,
(GDestroyNotify)g_free,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]