[gtkhtml] Bug #603342 - Memory leak fix
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug #603342 - Memory leak fix
- Date: Tue, 15 Dec 2009 09:58:43 +0000 (UTC)
commit a07e3e5b4c80fa8e1875a7286453d7304dacf227
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 15 10:57:55 2009 +0100
Bug #603342 - Memory leak fix
gtkhtml/htmlengine.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtkhtml/htmlengine.c b/gtkhtml/htmlengine.c
index 0f86e78..77e3e0d 100644
--- a/gtkhtml/htmlengine.c
+++ b/gtkhtml/htmlengine.c
@@ -4190,6 +4190,11 @@ html_engine_finalize (GObject *object)
engine->search_info = NULL;
}
+ if (engine->formText) {
+ g_string_free (engine->formText, TRUE);
+ engine->formText = NULL;
+ }
+
clear_selection (engine);
html_engine_map_table_clear (engine);
html_engine_id_table_clear (engine);
@@ -5309,6 +5314,11 @@ html_engine_parse (HTMLEngine *e)
g_list_free (e->formList);
+ if (e->formText) {
+ g_string_free (e->formText, TRUE);
+ e->formText = NULL;
+ }
+
e->focus_object = NULL;
e->map = NULL;
e->formList = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]