diff --git a/test/libmpv_common.h b/test/libmpv_common.h index 1a7754e86f..a692569fdb 100644 --- a/test/libmpv_common.h +++ b/test/libmpv_common.h @@ -54,7 +54,7 @@ static inline void fail(const char *fmt, ...) static inline void exit_cleanup(void) { - mpv_destroy(ctx); + mpv_terminate_destroy(ctx); ctx = NULL; }