diff src/gtkconv.c @ 10892:175167f62c28

[gaim-migrate @ 12603] Plug a small leak in whispered messages and handle messages that are missing flags a bit better. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 01 May 2005 14:00:37 +0000
parents 5cda52915a1f
children 3f85d6fc763a
line wrap: on
line diff
--- 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> ",