[gnote] Fix a leak with libxml2 usage.
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] Fix a leak with libxml2 usage.
- Date: Tue, 30 Jun 2009 08:04:49 +0000 (UTC)
commit f1039379a7f0c6707dff5649d147bc7b425bb0af
Author: Hubert Figuiere <hub figuiere net>
Date: Tue Jun 30 03:49:15 2009 -0400
Fix a leak with libxml2 usage.
Delete the import addins at the end.
src/actionmanager.cpp | 1 +
src/addinmanager.cpp | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index beaae8f..58432a5 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -160,6 +160,7 @@ namespace gnote {
xmlFree(prop);
}
}
+ xmlFreeDoc(doc);
}
diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index 01c86d0..4fa8378 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -84,6 +84,7 @@ namespace gnote {
boost::bind(&boost::checked_delete<NoteAddin>, _1));
}
sharp::map_delete_all_second(m_addin_prefs);
+ sharp::map_delete_all_second(m_import_addins);
for(std::list<sharp::IfaceFactoryBase*>::iterator iter = m_builtin_ifaces.begin();
iter != m_builtin_ifaces.end(); ++iter) {
delete *iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]