aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Hooper <adamh@src.gnome.org>2004-11-03 20:44:57 +0800
committerAdam Hooper <adamh@src.gnome.org>2004-11-03 20:44:57 +0800
commita6b19e2aa48950d339d319e34ee1ab72eae6cbe3 (patch)
tree27332618cb60774a6c9f711a8ee8321fe180eae5
parent65df5f0299d4e158169d7d858c078d12fe62d31c (diff)
downloadgsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.tar
gsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.tar.gz
gsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.tar.bz2
gsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.tar.lz
gsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.tar.xz
gsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.tar.zst
gsoc2013-epiphany-a6b19e2aa48950d339d319e34ee1ab72eae6cbe3.zip
Free XML data after parsing it. Noticed by jfr. I'm an idiot.
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-extensions-manager.c8
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cd9032564..a1414a70f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-11-03 Adam Hooper <adamh@cvs.gnome.org>
+
+ * src/ephy-extensions-manager.c:
+ (ephy_extensions_manager_load_file), (load_file_from_monitor):
+
+ Free XML data after parsing it. Noticed by jfr. I'm an idiot.
+
2004-11-02 Christian Persch <chpe@cvs.gnome.org>
* embed/downloader-view.c:
diff --git a/src/ephy-extensions-manager.c b/src/ephy-extensions-manager.c
index b27502527..70dbb2a96 100644
--- a/src/ephy-extensions-manager.c
+++ b/src/ephy-extensions-manager.c
@@ -687,6 +687,7 @@ ephy_extensions_manager_load_file (EphyExtensionsManager *manager,
ephy_extensions_manager_load_string (manager, identifier, xml);
g_free (identifier);
+ g_free (xml);
}
static int
@@ -945,7 +946,10 @@ load_file_from_monitor (EphyExtensionsManager *manager,
return;
}
- if (len == 0) return;
+ if (len == 0) {
+ g_free (xml);
+ return;
+ }
identifier = path_to_identifier (path);
g_return_if_fail (identifier != NULL);
@@ -954,12 +958,14 @@ load_file_from_monitor (EphyExtensionsManager *manager,
(GCompareFunc) find_extension_info) != NULL)
{
g_free (identifier);
+ g_free (xml);
return;
}
ephy_extensions_manager_load_string (manager, identifier, xml);
g_free (identifier);
+ g_free (xml);
sync_loaded_extensions (manager);
}