Mercurial > pidgin
diff src/protocols/msn/msn.c @ 4111:ee884f1d7ae3
[gaim-migrate @ 4326]
<Robot101> adds a gc->flag called OPT_CONN_AUTO_RESP so that
gc->away can always store the away message even if
the prpl doesn't support autoresponding
<Robot101> makes all protos correctly free and set gc->away to
avoid leaks
<Robot101> stores the current away state in gc->away_state
whenever gc->away is non-NULL (ie it's not just a
plain on-line)
<Robot101> also minor change to Jabber to make Chatty an away
state, and to Gadu-Gadu to make some other thing an
away state too
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sat, 21 Dec 2002 19:33:54 +0000 |
| parents | 5b56c42c2717 |
| children | 12552607e88c |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Sat Dec 21 05:37:45 2002 +0000 +++ b/src/protocols/msn/msn.c Sat Dec 21 19:33:54 2002 +0000 @@ -1881,13 +1881,16 @@ char buf[MSN_BUF_LEN]; char *away; - gc->away = NULL; + if (gc->away) { + g_free(gc->away); + gc->away = NULL; + } if (msg) { - gc->away = ""; + gc->away = g_strdup(""); away = "AWY"; } else if (state) { - gc->away = ""; + gc->away = g_strdup(""); if (!strcmp(state, _("Away From Computer"))) away = "AWY"; @@ -1902,6 +1905,7 @@ else if (!strcmp(state, _("Hidden"))) away = "HDN"; else { + g_free(gc->away); gc->away = NULL; away = "NLN"; }
