# HG changeset patch # User Mark Doliner # Date 1072681943 0 # Node ID 959ae45dd0c527088dc67b9145fa31b5157e511d # Parent fb66c2ee4446ef2823a62271277433fe9ad27df6 [gaim-migrate @ 8628] Ka-Hing Cheung fixed the crap out of the bug where gtk_imhtml_hr_scale causes a crash if you have an away message with an HR and you look at it twice in the preferences thing. Beautimous! committer: Tailor Script diff -r fb66c2ee4446 -r 959ae45dd0c5 src/gtkimhtml.c --- a/src/gtkimhtml.c Mon Dec 29 06:48:11 2003 +0000 +++ b/src/gtkimhtml.c Mon Dec 29 07:12:23 2003 +0000 @@ -1699,6 +1699,16 @@ imhtml->format_spans = imhtml->format_spans->next; } g_list_free(del); + + del = imhtml->scalables; + while (del) { + GtkIMHtmlScalable *scale = del->data; + scale->free(scale); + del = del->next; + } + g_list_free(imhtml->scalables); + imhtml->scalables = NULL; + imhtml->edit.bold = NULL; imhtml->edit.italic = NULL; imhtml->edit.underline = NULL; @@ -2556,7 +2566,6 @@ char *gtk_imhtml_get_markup(GtkIMHtml *imhtml) { - char *text; GtkTextIter start, end; gtk_text_buffer_get_start_iter(imhtml->text_buffer, &start);