Mercurial > pidgin
diff libpurple/protocols/sametime/sametime.c @ 24986:f0c2e27c7ae7
propagate from branch 'im.pidgin.pidgin' (head b478b184a46116ac87ac85b8cd352ea564224019)
to branch 'im.pidgin.pidgin.vv' (head 6ace5b357bd34d1a93fad3fcf59b31f846c64e0b)
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Fri, 02 Jan 2009 23:14:27 +0000 |
parents | 68f4edb42f39 4455637864b4 |
children | ff4212a5268f |
line wrap: on
line diff
--- a/libpurple/protocols/sametime/sametime.c Tue Dec 16 02:11:07 2008 +0000 +++ b/libpurple/protocols/sametime/sametime.c Fri Jan 02 23:14:27 2009 +0000 @@ -3724,7 +3724,6 @@ gc->flags |= PURPLE_CONNECTION_NO_IMAGES; user = g_strdup(purple_account_get_username(account)); - pass = g_strdup(purple_account_get_password(account)); host = strrchr(user, ':'); if(host) { @@ -3741,10 +3740,12 @@ if(! host || ! *host) { /* somehow, we don't have a host to connect to. Well, we need one to actually continue, so let's ask the user directly. */ + g_free(user); prompt_host(gc); return; } + pass = g_strdup(purple_account_get_password(account)); port = purple_account_get_int(account, MW_KEY_PORT, MW_PLUGIN_DEFAULT_PORT); DEBUG_INFO("user: '%s'\n", user);