changeset 49:4d25b98a9d09

[gaim-migrate @ 58] mem fix committer: Tailor Script <tailor@pidgin.im>
author Jim Duchek <jimduchek>
date Sat, 25 Mar 2000 23:28:15 +0000
parents 205243154778
children aa738bb8d8d7
files src/gtkhtml.c
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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