This commit is contained in:
2026-03-18 07:56:17 +01:00
parent c50267120a
commit 9bdc4ba894
2 changed files with 16 additions and 0 deletions

View File

@@ -24,6 +24,17 @@ uint64_t current_ms() {
Rktwebview_qt *handler = nullptr;
void destroyApp()
{
if (handler != nullptr) {
QCoreApplication *app = QApplication::instance();
if (app != nullptr) {
app->exit(0);
delete app;
}
}
}
void rkt_webview_cleanup()
{
if (handler != nullptr) {
@@ -58,6 +69,7 @@ void rkt_webview_init()
//fprintf(stderr, "init: handler = %p\n", handler);
handler = new Rktwebview_qt();
//fprintf(stderr, "init: handler = %p\n", handler);
atexit(destroyApp);
}
if (handler->app() == nullptr) {