diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-extensions-manager.c | 8 |
2 files changed, 14 insertions, 1 deletions
@@ -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); } |