Mercurial > pidgin
changeset 9008:6dc1f052edc0
[gaim-migrate @ 9784]
GdkColors were meant to be free.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sat, 22 May 2004 07:04:19 +0000 |
parents | 0a08f671b591 |
children | fe5d083f0172 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat May 22 06:35:13 2004 +0000 +++ b/src/gtkimhtml.c Sat May 22 07:04:19 2004 +0000 @@ -3455,10 +3455,12 @@ str[47] = '\0'; gtk_widget_style_get(GTK_WIDGET(imhtml), "hyperlink-color", &color, NULL); - if (color) + if (color) { imhtml->edit.link = linktag = gtk_text_buffer_create_tag(imhtml->text_buffer, str, "foreground-gdk", color, "underline", PANGO_UNDERLINE_SINGLE, NULL); - else + gdk_color_free(color); + } else { imhtml->edit.link = linktag = gtk_text_buffer_create_tag(imhtml->text_buffer, str, "foreground", "blue", "underline", PANGO_UNDERLINE_SINGLE, NULL); + } g_object_set_data_full(G_OBJECT(linktag), "link_url", g_strdup(url), g_free); g_signal_connect(G_OBJECT(linktag), "event", G_CALLBACK(tag_event), NULL);