fix render loop object
All checks were successful
buildbot/DocsGenerator Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.

This commit is contained in:
Andrei Yankovich 2025-02-18 18:30:36 +01:00
parent 55c80f3e24
commit 299fbe8e40

View File

@ -7,6 +7,7 @@
#include "asyncrenderloop.h"
#include <QThread>
#include <qdebug.h>
namespace QH {
@ -15,6 +16,8 @@ AsyncRenderLoop::AsyncRenderLoop(QThread *thread, QObject *ptr): Async(thread, p
AsyncRenderLoop::~AsyncRenderLoop() {
AsyncRenderLoop::stop();
delete thread();
}
void QH::AsyncRenderLoop::run() {
@ -34,6 +37,7 @@ void QH::AsyncRenderLoop::stop() {
m_run = false;
thread()->quit();
thread()->wait();
}
bool AsyncRenderLoop::isRun() const {