From c988af4150dba4d429496fe5e36fd219377a0935 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 2 Oct 2001 07:55:51 +0000 Subject: Added MODULE_DATA_UNSET() macro and started using it. Just to make sure we don't try to access free'd data. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1818 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/flood/flood.c | 1 + src/irc/notifylist/notifylist.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/irc') diff --git a/src/irc/flood/flood.c b/src/irc/flood/flood.c index aa383554..d5339d4f 100644 --- a/src/irc/flood/flood.c +++ b/src/irc/flood/flood.c @@ -160,6 +160,7 @@ static void flood_deinit_server(IRC_SERVER_REC *server) g_hash_table_destroy(mserver->floodlist); } g_free(mserver); + MODULE_DATA_UNSET(server); } static FLOOD_ITEM_REC *flood_find(FLOOD_REC *flood, int level, diff --git a/src/irc/notifylist/notifylist.c b/src/irc/notifylist/notifylist.c index 09a6f7c7..402e315e 100644 --- a/src/irc/notifylist/notifylist.c +++ b/src/irc/notifylist/notifylist.c @@ -218,6 +218,7 @@ static void notifylist_deinit_server(IRC_SERVER_REC *server) notify_nick_destroy(rec); } g_free(mserver); + MODULE_DATA_UNSET(server); } void notifylist_left(IRC_SERVER_REC *server, NOTIFY_NICK_REC *rec) -- cgit v1.2.3