mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
GC fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
bb55d3ff4d
commit
6825f1e67e
6 changed files with 19 additions and 16 deletions
|
|
@ -613,13 +613,14 @@ static int free_iobject_proto(void *key, void *value, void *chat_type)
|
|||
|
||||
static void perl_unregister_protocol(CHAT_PROTOCOL_REC *rec)
|
||||
{
|
||||
GSList *item;
|
||||
GSList *item;
|
||||
void *data;
|
||||
|
||||
item = gslist_find_icase_string(use_protocols, rec->name);
|
||||
if (item != NULL) {
|
||||
g_free(item->data);
|
||||
use_protocols =
|
||||
g_slist_remove(use_protocols, item->data);
|
||||
data = item->data;
|
||||
use_protocols = g_slist_remove(use_protocols, data);
|
||||
g_free(data);
|
||||
}
|
||||
g_hash_table_foreach_remove(iobject_stashes,
|
||||
(GHRFunc) free_iobject_proto,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue