diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-16 15:58:21 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-10-16 15:58:21 -0700 |
commit | 3fc6c32bede01e02b2ac4541c952f37dbad511b3 (patch) | |
tree | 45749ced477a300d402f779fa186eaab6ef8a794 /irc.c | |
parent | 9c9a29ceea6734175f9f7693ce86b3ba633f4f7b (diff) |
Stop calling nogaim_init() on every incoming connection (unless we're
using libpurple). This was leaking memory and indirectly caused the bug
fixed by the previous revision.
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -164,7 +164,11 @@ irc_t *irc_new( int fd ) g_free( myhost ); g_free( host ); + /* libpurple doesn't like fork()s after initializing itself, so this + is the right moment to initialize it. */ +#ifdef WITH_PURPLE nogaim_init(); +#endif for( l = irc_plugins; l; l = l->next ) { |