diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-03 20:43:41 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-03 20:43:41 +0100 |
commit | d1950311cfc7f28940ef3810fda84c2c56841656 (patch) | |
tree | 2ce561846435531e4014bb87da88142940c326d7 /src/plugins/irc | |
parent | 92bc700349d7ff037926834c5fc4e3fc9447315d (diff) | |
download | weechat-d1950311cfc7f28940ef3810fda84c2c56841656.zip |
Free IRC raw messages when irc plugin is unloaded
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-raw.h | 1 | ||||
-rw-r--r-- | src/plugins/irc/irc.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-raw.h b/src/plugins/irc/irc-raw.h index 692aa69ab..6b06ef0c6 100644 --- a/src/plugins/irc/irc-raw.h +++ b/src/plugins/irc/irc-raw.h @@ -47,6 +47,7 @@ extern struct t_irc_raw_message *irc_raw_message_add_to_list (time_t date, const char *message); extern void irc_raw_print (struct t_irc_server *server, int send, int modified, const char *message); +extern void irc_raw_message_free_all (); extern int irc_raw_add_to_infolist (struct t_infolist *infolist, struct t_irc_raw_message *raw_message); diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c index a659d10a2..b2d7f0283 100644 --- a/src/plugins/irc/irc.c +++ b/src/plugins/irc/irc.c @@ -36,6 +36,7 @@ #include "irc-server.h" #include "irc-channel.h" #include "irc-nick.h" +#include "irc-raw.h" #include "irc-upgrade.h" @@ -250,6 +251,8 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) irc_server_disconnect_all (); } + irc_raw_message_free_all (); + irc_server_free_all (); irc_config_free (); |