diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-02 15:28:23 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-02 15:28:23 +0200 |
commit | dd345753c1742905c9f81aa71d8b09109fbc5456 (patch) | |
tree | 8689e25f6465c17c3dd5913af6ae289bf13768d4 /lib/events_glib.c | |
parent | 0db75ad966458610427dacdd31ecbaddbca18935 (diff) | |
parent | fa75134008bd9206ca02380927c27581feb65c3e (diff) |
merge trunk.
Diffstat (limited to 'lib/events_glib.c')
-rw-r--r-- | lib/events_glib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/events_glib.c b/lib/events_glib.c index 1198dba6..3e194e98 100644 --- a/lib/events_glib.c +++ b/lib/events_glib.c @@ -50,11 +50,12 @@ typedef struct _GaimIOClosure { gpointer data; } GaimIOClosure; -static GMainLoop *loop; +static GMainLoop *loop = NULL; void b_main_init() { - loop = g_main_new( FALSE ); + if( loop == NULL ) + loop = g_main_new( FALSE ); } void b_main_run() |