From a6b19e2aa48950d339d319e34ee1ab72eae6cbe3 Mon Sep 17 00:00:00 2001 From: Adam Hooper Date: Wed, 3 Nov 2004 12:44:57 +0000 Subject: Free XML data after parsing it. Noticed by jfr. I'm an idiot. --- src/ephy-extensions-manager.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3