summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-03-19 12:24:43 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-03-19 12:24:43 -0700
commitf08356c4d204b07847a1d550b2acda44a897f970 (patch)
tree8b3e7c46de3f45d07d8427d9145978d651d9aa26 /src/main.c
parent292357d284a6cb067a6cb3c7779225e65edb475e (diff)
*: use til_module_destroy_context()
Mechanically replaced ad-hoc til_module_t.destroy_context() invocations with helper calls.
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