# HG changeset patch # User Richard Laager # Date 1138678919 0 # Node ID f3abb141042af5f2bef04ee430dc047902910d75 # Parent 4b7a8787432cf15b2d38887cd15a62ff2e7eb622 [gaim-migrate @ 15438] (21:39:36) Sadrul Habib Chowdhury (sadrul): rlaager: i think this change needs to be made. g_hash_table_replace replaces (and frees) the old key, so it's not a good idea to free the new one while it's in use committer: Tailor Script diff -r 4b7a8787432c -r f3abb141042a src/log.c --- a/src/log.c Mon Jan 30 06:22:39 2006 +0000 +++ b/src/log.c Tue Jan 31 03:41:59 2006 +0000 @@ -118,11 +118,11 @@ total = GPOINTER_TO_INT(ptrsize); total += written; g_hash_table_replace(logsize_users, lu, GINT_TO_POINTER(total)); + } else { + g_free(lu->name); + g_free(lu); } - g_free(lu->name); - g_free(lu); - } char *gaim_log_read(GaimLog *log, GaimLogReadFlags *flags)