changeset 7991:096562205906

[gaim-migrate @ 8668] javabsp rocks so hard, I figured out where this went, and put it back in committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 04 Jan 2004 19:14:43 +0000
parents 10c7cd1d4e17
children efc78aee5817
files src/gtkimhtml.c
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sun Jan 04 18:57:37 2004 +0000
+++ b/src/gtkimhtml.c	Sun Jan 04 19:14:43 2004 +0000
@@ -426,7 +426,7 @@
 		GtkIMHtmlScalable *scale = GTK_IMHTML_SCALABLE(scalables->data);
 		scale->free(scale);
 	}
-	
+
 #if GTK_CHECK_VERSION(2,2,0)
 	for (copyables = imhtml->copyables; copyables; copyables = copyables->next) {
 		GtkIMHtmlCopyable *copy = GTK_IMHTML_COPYABLE(copyables->data);
@@ -1595,11 +1595,19 @@
 void
 gtk_imhtml_clear (GtkIMHtml *imhtml)
 {
+	GList *del;
 	GtkTextIter start, end;
-	
+
 	gtk_text_buffer_get_start_iter(imhtml->text_buffer, &start);
 	gtk_text_buffer_get_end_iter(imhtml->text_buffer, &end);
 	gtk_text_buffer_delete(imhtml->text_buffer, &start, &end);
+
+	for(del = imhtml->scalables; del; del = del->next) {
+		GtkIMHtmlScalable *scale = del->data;
+		scale->free(scale);
+	}
+	g_list_free(imhtml->scalables);
+	imhtml->scalables = NULL;
 }
 
 void gtk_imhtml_page_up (GtkIMHtml *imhtml)