core/generation: fix incuabation controller use after free

qobject_casts were failing causing old controllers to never be removed
from the list.
This commit is contained in:
outfoxxed 2024-03-25 02:02:46 -07:00
parent c6bf826031
commit b6dc6967a1
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 34 additions and 10 deletions

View file

@ -3,6 +3,7 @@
#include <qcontainerfwd.h>
#include <qfilesystemwatcher.h>
#include <qobject.h>
#include <qpair.h>
#include <qqmlincubator.h>
#include <qtclasshelpermacros.h>
@ -49,5 +50,5 @@ private slots:
private:
void postReload();
void assignIncubationController();
QVector<QQmlIncubationController*> incubationControllers;
QVector<QPair<QQmlIncubationController*, QObject*>> incubationControllers;
};