diff options
author | Adam Hooper <adamh@src.gnome.org> | 2004-11-03 20:44:57 +0800 |
---|---|---|
committer | Adam Hooper <adamh@src.gnome.org> | 2004-11-03 20:44:57 +0800 |
commit | a6b19e2aa48950d339d319e34ee1ab72eae6cbe3 (patch) | |
tree | 27332618cb60774a6c9f711a8ee8321fe180eae5 /src | |
parent | 65df5f0299d4e158169d7d858c078d12fe62d31c (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-extensions-manager.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); } |