A small memory leak in the tooltip.

Fri, 02 Feb 2007 06:09:03 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Fri, 02 Feb 2007 06:09:03 +0000
changeset 15550
d710f85e6d0e
parent 15549
24d6ba72d71d
child 15551
fb4a1b0138cd
child 15564
61befe113a13

A small memory leak in the tooltip.
Bring back the separator horizontal line in a multi-buddy contact's tooltip.

pidgin/gtkblist.c file | annotate | diff | comparison | revisions
--- 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);
 	}
 }
 

mercurial