# HG changeset patch # User Nathan Walp # Date 1047537580 0 # Node ID ece4045eebffd178b4ff283eca197d894602b2b8 # Parent 76ccf974018340507c8886510178ccb1735132c0 [gaim-migrate @ 5049] memoryclobberinfixen committer: Tailor Script diff -r 76ccf9740183 -r ece4045eebff src/protocols/oscar/oscar.c --- 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); }