Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
10891:8175206faa3d | 10892:175167f62c28 |
---|---|
4879 } else | 4879 } else |
4880 strcpy(color, RECV_COLOR); | 4880 strcpy(color, RECV_COLOR); |
4881 } | 4881 } |
4882 else if (flags & GAIM_MESSAGE_SEND) | 4882 else if (flags & GAIM_MESSAGE_SEND) |
4883 strcpy(color, SEND_COLOR); | 4883 strcpy(color, SEND_COLOR); |
4884 else { | |
4885 gaim_debug_error("gtkconv", "message missing flags\n"); | |
4886 strcpy(color, "#000000"); | |
4887 } | |
4884 } | 4888 } |
4885 | 4889 } |
4886 if(who_escaped) | 4890 |
4887 g_free(who_escaped); | 4891 if(who_escaped) |
4888 } | 4892 g_free(who_escaped); |
4889 g_snprintf(buf2, BUF_LONG, | 4893 g_snprintf(buf2, BUF_LONG, |
4890 "<FONT COLOR=\"%s\" %s><FONT SIZE=\"2\"><!--(%s) --></FONT>" | 4894 "<FONT COLOR=\"%s\" %s><FONT SIZE=\"2\"><!--(%s) --></FONT>" |
4891 "<B>%s</B></FONT> ", | 4895 "<B>%s</B></FONT> ", |
4892 color, sml_attrib ? sml_attrib : "", mdate, str); | 4896 color, sml_attrib ? sml_attrib : "", mdate, str); |
4893 | 4897 |