summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a5c60ce..28601e9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -282,10 +282,7 @@ int main(int argc, const char *argv[])
pthread_cancel(rototiller.thread);
pthread_join(rototiller.thread, NULL);
til_shutdown();
-
- if (rototiller.module_context)
- rototiller.module->destroy_context(rototiller.module_context);
-
+ til_module_destroy_context(rototiller.module, rototiller.module_context);
til_fb_free(rototiller.fb);
return EXIT_SUCCESS;
© All Rights Reserved