summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3104c264..0785b39c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,6 @@
#include <stddef.h>
#include <assert.h>
+#include <ltdl.h>
#include "core.h"
#include "mainloop.h"
@@ -8,7 +9,11 @@
int main(int argc, char *argv[]) {
struct mainloop *m;
struct core *c;
+ int r;
+ r = lt_dlinit();
+ assert(r == 0);
+
m = mainloop_new();
assert(m);
c = core_new(m);
@@ -21,6 +26,8 @@ int main(int argc, char *argv[]) {
core_free(c);
mainloop_free(m);
+
+ lt_dlexit();
return 0;
}