Mercurial > pidgin
diff libpurple/protocols/msn/table.c @ 15745:d3d9f28fb6d0
Fix a memory leak found by Peter Tang. Thanks man!
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 01 Mar 2007 08:33:21 +0000 |
| parents | 5fe8042783c1 |
| children | 32c366eeeb99 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/table.c Thu Mar 01 08:26:07 2007 +0000 +++ b/libpurple/protocols/msn/table.c Thu Mar 01 08:33:21 2007 +0000 @@ -41,7 +41,7 @@ table = g_new0(MsnTable, 1); - table->cmds = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); + table->cmds = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify)g_hash_table_destroy); table->msgs = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); table->errors = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL);
