[epiphany] uri-tester: don't leak from the pattern table
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] uri-tester: don't leak from the pattern table
- Date: Tue, 8 Sep 2015 17:40:08 +0000 (UTC)
commit aa9fb6b9328ba24a0a6aed4b4a3d028816585ae5
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Aug 31 09:42:42 2015 -0500
uri-tester: don't leak from the pattern table
This code is difficult to understand, but it's clear that these elements
are not freed when they are removed. Fix it.
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 9e515b1..1915651 100644
--- a/embed/web-extension/uri-tester.c
+++ b/embed/web-extension/uri-tester.c
@@ -520,7 +520,7 @@ uri_tester_compile_regexp (UriTester *tester,
g_regex_unref (regex);
if (signature_count > 1 && g_hash_table_lookup (tester->priv->pattern, patt))
- g_hash_table_steal (tester->priv->pattern, patt);
+ g_hash_table_remove (tester->priv->pattern, patt);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]