Mercurial > pidgin.yaz
changeset 4734:ece4045eebff
[gaim-migrate @ 5049]
memoryclobberinfixen
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 13 Mar 2003 06:39:40 +0000 |
parents | 76ccf9740183 |
children | 66c2388046fb |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Thu Mar 13 06:29:56 2003 +0000 +++ b/src/protocols/oscar/oscar.c Thu Mar 13 06:39:40 2003 +0000 @@ -549,8 +549,8 @@ gc->flags |= OPT_CONN_HTML; gc->flags |= OPT_CONN_AUTO_RESP; } - od->supports_tn = g_hash_table_new(g_str_hash, g_str_equal); - od->buddy_caps = g_hash_table_new(g_str_hash, g_str_equal); + od->supports_tn = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); + od->buddy_caps = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); sess = g_new0(aim_session_t, 1); @@ -1632,7 +1632,7 @@ if (!aim_sncmp(gc->username, info->sn)) g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn); - g_hash_table_replace(od->buddy_caps, normalize(info->sn), + g_hash_table_replace(od->buddy_caps, g_strdup(normalize(info->sn)), GINT_TO_POINTER(caps)); serv_got_update(gc, info->sn, 1, info->warnlevel/10, signon, @@ -2033,7 +2033,7 @@ } if (args->icbmflags & AIM_IMFLAGS_TYPINGNOT) { - char *who = normalize(userinfo->sn); + char *who = g_strdup(normalize(userinfo->sn)); if (!g_hash_table_lookup(od->supports_tn, who)) g_hash_table_insert(od->supports_tn, who, (gpointer)1); }