Re: [evolution-patches] more gtkhtml fixes.



Ugh, this included some images changes I didn't mean to.  New patch with
another fix attached.

On Thu, 2003-06-12 at 10:37, Larry Ewing wrote:
> Two more small fixes for gtkhtml, Zucchi found the table one.
> 
> --Larry
Index: htmlengine.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine.c,v
retrieving revision 1.543
diff -u -p -r1.543 htmlengine.c
--- htmlengine.c	11 Jun 2003 17:34:02 -0000	1.543
+++ htmlengine.c	13 Jun 2003 16:36:16 -0000
@@ -143,6 +143,7 @@ static void      update_embedded        
 					    gpointer );
 
 static void      html_engine_map_table_clear (HTMLEngine *e);
+static void      html_engine_id_table_clear (HTMLEngine *e);
 static void      html_engine_add_map (HTMLEngine *e, HTMLMap *map);
 static void      clear_pending_expose (HTMLEngine *e);
 
@@ -3395,6 +3396,9 @@ html_engine_finalize (GObject *object)
 	}
 
 	clear_selection (engine);
+	html_engine_map_table_clear (engine);
+	html_engine_id_table_clear (engine);
+	html_engine_clear_all_class_data (engine);
 
 	if (engine->insertion_url) {
 		g_free (engine->insertion_url);
Index: gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.515
diff -u -p -r1.515 gtkhtml.c
--- gtkhtml.c	11 Jun 2003 17:34:02 -0000	1.515
+++ gtkhtml.c	13 Jun 2003 16:36:19 -0000
@@ -706,6 +706,7 @@ destroy (GtkObject *object)
 		}
 
 		g_free (html->priv->content_type);
+		g_free (html->priv->base_url);
 		g_free (html->priv);
 		html->priv = NULL;
 	}
Index: htmltable.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmltable.c,v
retrieving revision 1.167
diff -u -p -r1.167 htmltable.c
--- htmltable.c	16 Jan 2003 20:16:05 -0000	1.167
+++ htmltable.c	13 Jun 2003 16:36:22 -0000
@@ -103,6 +103,7 @@ destroy (HTMLObject *o)
 	g_array_free (table->columnMin, TRUE);
 	g_array_free (table->columnPref, TRUE);
 	g_array_free (table->columnOpt, TRUE);
+	g_array_free (table->columnFixed, TRUE);
 	g_array_free (table->rowHeights, TRUE);
 
 	if (table->bgColor)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1810
diff -u -p -r1.1810 ChangeLog
--- ChangeLog	11 Jun 2003 17:34:00 -0000	1.1810
+++ ChangeLog	13 Jun 2003 16:36:32 -0000
@@ -1,3 +1,14 @@
+2003-06-13  Larry Ewing  <lewing ximian com>
+
+	* htmlengine.c (html_engine_finalize): clear some of the various
+	state tables.
+
+2003-06-12  Larry Ewing  <lewing ximian com>
+
+	* gtkhtml.c (destroy): free base_url.
+
+	* htmltable.c (destroy): free columnFixed array.
+
 2003-06-10  Larry Ewing  <lewing ximian com>
 
 	* gtkhtml.c (style_set): free the var_name.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]