Changeset 3fc6c32


Ignore:
Timestamp:
2010-10-16T22:58:21Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
83e47ec
Parents:
9c9a29c
Message:

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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r9c9a29c r3fc6c32  
    165165        g_free( host );
    166166       
     167        /* libpurple doesn't like fork()s after initializing itself, so this
     168           is the right moment to initialize it. */
     169#ifdef WITH_PURPLE
    167170        nogaim_init();
     171#endif
    168172       
    169173        for( l = irc_plugins; l; l = l->next )
  • unix.c

    r9c9a29c r3fc6c32  
    7474        b_main_init();
    7575       
     76        /* libpurple doesn't like fork()s after initializing itself, so if
     77           we use it, do this init a little later (in case we're running in
     78           ForkDaemon mode). */
     79#ifndef WITH_PURPLE
     80        nogaim_init();
     81#endif
     82       
    7683        /* Ugly Note: libotr and gnutls both use libgcrypt. libgcrypt
    7784           has a process-global config state whose initialization happpens
Note: See TracChangeset for help on using the changeset viewer.