summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-07 15:11:24 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-07 15:11:24 +0000
commitf93befe282bdf5937acdbc8d004b3759e0c5a000 (patch)
tree2d05fb74313484dad96dc6573b231ba5a3ce7b5f /src/fe-text/irssi.c
parenta0f16de883a5e00fba71248bb63432c75087d886 (diff)
downloadirssi-f93befe282bdf5937acdbc8d004b3759e0c5a000.zip
g_mem_set_vtable must be called before using any other GLib functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4734 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index ddd653ce..bf389998 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -297,6 +297,10 @@ int main(int argc, char **argv)
{ NULL }
};
+#ifdef USE_GC
+ g_mem_set_vtable(&gc_mem_table);
+#endif
+
core_register_options();
fe_common_core_register_options();
args_register(options);
@@ -308,10 +312,6 @@ int main(int argc, char **argv)
return 0;
}
-#ifdef USE_GC
- g_mem_set_vtable(&gc_mem_table);
-#endif
-
srand(time(NULL));
dummy = FALSE;