changeset 15489:29e8e230d1b6

A small memory leak in the tooltip. Bring back the separator horizontal line in a multi-buddy contact's tooltip.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 02 Feb 2007 06:09:03 +0000
parents d562dbb64e70
children d4f627770107 704d40050800
files pidgin/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Fri Feb 02 04:38:35 2007 +0000
+++ b/pidgin/gtkblist.c	Fri Feb 02 06:09:03 2007 +0000
@@ -2265,6 +2265,7 @@
 	td->avatar_width = gdk_pixbuf_get_width(td->avatar);
 	td->avatar_height = gdk_pixbuf_get_height(td->avatar);
 
+	g_free(node_name);
 	g_free(tooltip_text);
 	return td;
 }
@@ -2343,6 +2344,9 @@
 				TOOLTIP_BORDER + STATUS_SIZE + SMALL_SPACE, current_height + td->name_height, td->layout);
 
 		current_height += MAX(td->name_height + td->height, td->avatar_height) + TOOLTIP_BORDER;
+		if(l->next)
+			gtk_paint_hline(style, gtkblist->tipwindow->window, GTK_STATE_NORMAL,
+					NULL, NULL, NULL, 4, max_width - 4, current_height-6);
 	}
 }