summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index fbb3e0c1..d0bbbc99 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -309,6 +309,17 @@ static void winsock_init(void)
}
#endif
+#ifdef HAVE_GC
+#include <gc/gc.h>
+GMemVTable gc_mem_table = {
+ GC_malloc,
+ GC_realloc,
+ GC_free,
+
+ NULL, NULL, NULL
+};
+#endif
+
int main(int argc, char **argv)
{
static struct poptOption options[] = {
@@ -316,6 +327,10 @@ int main(int argc, char **argv)
{ NULL, '\0', 0, NULL }
};
+#ifdef HAVE_GC
+ g_mem_set_vtable(&gc_mem_table);
+#endif
+
dummy = FALSE;
quitting = FALSE;
core_init_paths(argc, argv);