Sat, 25 Mar 2000 23:28:15 +0000
[gaim-migrate @ 58]
mem fix
| src/gtkhtml.c | file | annotate | diff | comparison | revisions |
--- a/src/gtkhtml.c Sat Mar 25 23:02:06 2000 +0000 +++ b/src/gtkhtml.c Sat Mar 25 23:28:15 2000 +0000 @@ -2953,19 +2953,21 @@ } - if (url != NULL) - fore = get_color(3355647, gdk_window_get_colormap(html->html_area)); hb = g_new0(GtkHtmlBit, 1); hb->text = g_strdup(text); - if (fore) - hb->fore = gdk_color_copy(fore); - else - hb->fore = NULL; - + if (url != NULL) { + hb->fore = get_color(3355647, gdk_window_get_colormap(html->html_area)); + } else { + if (fore) + hb->fore = gdk_color_copy(fore); + else + hb->fore = NULL; + } + if (back) hb->back = gdk_color_copy(back); else