[gaim-migrate @ 12603]

Sun, 01 May 2005 14:00:37 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sun, 01 May 2005 14:00:37 +0000
changeset 10892
83c6064e1eab
parent 10891
b52569a32997
child 10893
eb87c5657fd8

[gaim-migrate @ 12603]
Plug a small leak in whispered messages and handle messages that are
missing flags a bit better.

src/gtkconv.c file | annotate | diff | comparison | revisions
--- a/src/gtkconv.c	Fri Apr 29 22:08:04 2005 +0000
+++ b/src/gtkconv.c	Sun May 01 14:00:37 2005 +0000
@@ -4881,11 +4881,15 @@
 				}
 				else if (flags & GAIM_MESSAGE_SEND)
 					strcpy(color, SEND_COLOR);
+				else {
+					gaim_debug_error("gtkconv", "message missing flags\n");
+					strcpy(color, "#000000");
+				}
 			}
-
-			if(who_escaped)
-				g_free(who_escaped);
 		}
+
+		if(who_escaped)
+			g_free(who_escaped);
 		g_snprintf(buf2, BUF_LONG,
 			   "<FONT COLOR=\"%s\" %s><FONT SIZE=\"2\"><!--(%s) --></FONT>"
 			   "<B>%s</B></FONT> ",

mercurial